对url进行编码 :
window.location = encodeURI('pages/fridens.jsp?recordList=周某某');
而后发现在浏览器的地址栏里显示依然 :
http://localhost:8080/WACAI/pages/fridens.jsp?recordList=周某某 而后在fridens.jsp 里通过 String recordList = request.getParameter("recordList"); 是乱码。为什么 前端的转码 无效呢? 求解答url编码
window.location = encodeURI('pages/fridens.jsp?recordList=周某某');
而后发现在浏览器的地址栏里显示依然 :
http://localhost:8080/WACAI/pages/fridens.jsp?recordList=周某某 而后在fridens.jsp 里通过 String recordList = request.getParameter("recordList"); 是乱码。为什么 前端的转码 无效呢? 求解答url编码
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货