摘要:
修改JS中URL字符串编码:var url = "test.jsp?name=" + name;url = encodeURI(encodeURI(url)); //写一个不行。如果写一个就是????号。修改JSP中字符串解码:String name = request.getParameter("name");name = java.net.URLDecoder.decode(name,"UTF-8");System.out.println(name); 阅读全文