js传参:?text=encodeURIComponent(encodeURIComponent("呵呵"));
action 解码:
String text=request().getParameter("text");
text=URLDecoder.decode(text,"utf-8");
这样就可以了
js传参:?text=encodeURIComponent(encodeURIComponent("呵呵"));
action 解码:
String text=request().getParameter("text");
text=URLDecoder.decode(text,"utf-8");
这样就可以了
转载于:https://www.cnblogs.com/jiaobaobao/p/8534565.html