摘要: form 表单使用.serialize()序列化后会出现中文乱码的问题原因:.serialize()自动调用了encodeURIComponent方法将数据编码了解决方法:调用decodeURIComponent(XXX,true);将数据解码例如:var information=$("#inforForm").serialize(), informationDe= decodeURIComponent(information,true), //解码 informationEn= encodeURI(encodeURI(informationDe)); //再次编码后台St 阅读全文
posted @ 2014-03-25 14:28 Canrz 阅读(1674) 评论(0) 推荐(0)