JS 传值到 action 乱码

JS 
var afterencode = encodeURI(encodeURI("中文字符"));

location = afterencode;
 
在java中String result = java.net.URLDecoder.decode(userName,"UTF-8");

猜你喜欢

转载自xiaoqiufeng.iteye.com/blog/2298556