jquery Ajax提交与参数编码
直接使用ajax提交,当name参数中有中文时,需要使用encodeURIComponent()函数处理;在firefox下,不作处理也能正常,但在IE下就会乱码。
?
java.net.URLEncoder.encode(String s, String enc) ;?
?
?
?
?
?
发布时间: 2012-10-31 14:37:32 作者: rapoo
jquery Ajax提交与参数编码
直接使用ajax提交,当name参数中有中文时,需要使用encodeURIComponent()函数处理;在firefox下,不作处理也能正常,但在IE下就会乱码。
?
java.net.URLEncoder.encode(String s, String enc) ;?
?
?
?
?
?