//ajax的post方式不允许提交+,如果有"+",将会替换成空格。解决办法如下: str = str.replace(/\+/g,"+");