JAVA-前台编码,后台解码

前台

var objValue =window.encodeURI(window.encodeURI(queryObj));
alert(objValue);

后台

String descStr = URLDecoder.decode(objValue, "UTF-8");

posted @ 2016-08-29 09:37  Sunray0330  阅读(2987)  评论(0编辑  收藏  举报