首先在js里进行两次字符串编码,name = encodeURI(name);name = encodeURI(name);
在java后台接受字段的时候进行两次解码,
name = java.net.URLDecoder.decode(name,"UTF-8"); name = java.net.URLDecoder.decode(name,"UTF-8");
posted on 2016-01-07 14:13 smallTao 阅读(214) 评论(0) 编辑 收藏 举报