原因:.serialize()自动调用了encodeURIComponent()方法将数据编码了
解决方法:调用decodeURIComponent(XXX,true);将数据解码
使用原因:传递拼接的字符串数据时,一些特殊的字符例如:“+、@、#、$、%、&、?、/”等无法传递到后台输出,需要转码
原因:.serialize()自动调用了encodeURIComponent()方法将数据编码了
解决方法:调用decodeURIComponent(XXX,true);将数据解码
使用原因:传递拼接的字符串数据时,一些特殊的字符例如:“+、@、#、$、%、&、?、/”等无法传递到后台输出,需要转码
转载于:https://my.oschina.net/u/3398543/blog/894948