在js中的url进行encodeURIComponent编码:dd_ddtj_sub.jsp?shrxm="+encodeURIComponent(shrxm1)+"&lxdh="+encodeURIComponent(lxdh1)
后台service进行encode编码和decode解码:shrxm= java.net.URLEncoder.encode(shrxm, "UTF-8");
shrxm= java.net.URLDecoder.decode(shrxm,"UTF-8");
posted on 2012-07-11 17:01
邦 阅读(269)
评论(0) 编辑 收藏 所属分类:
JAVA