url中文编码


var url = b.jsp?name="小花"
url = encodeURI(url);
url = encodeURI(url);
window.location.href = url;


b.jsp中:<%=URLDecoder.decode(request.getParameter("name"),"utf-8") %>

猜你喜欢

转载自blog.csdn.net/u012107049/article/details/43268801