摘要: 页面为UTF-8,jQuery的ajax方法为utf-8传值,中文会出现乱码,给Java页面传值时需要进行两次转码encodeURI(); 例如: $.post("page.do",{str:encodeURI(encodeURI("中文"))},function(data){alert(data) 阅读全文
posted @ 2017-03-10 18:21 天上谪仙人 阅读(235) 评论(0) 推荐(0) 编辑