js传值到后台乱码问题

1.前台js的路径

var addurl1="ldcOrderController.do?goods&orderGoodsExtra="+encodeURI(encodeURI(orderGoodsExtra)); 

2.后台java的转化

String orderGoodsExtra= URLDecoder.decode(request.getParameter("orderGoodsExtra"), "UTF-8");

posted @ 2019-12-04 10:30  薛柏梁  阅读(205)  评论(0编辑  收藏  举报