HTML传值乱码

              myChart.on('click', function (param) {
                    $('#dlg_select').window({href:'<%=request.getContextPath()%>/jsp/bgData/vehicleDataView.jsp?vehModelName='+encodeURI(param.name)+'&flag='+param.seriesIndex})
                    .window('setTitle','车辆列表')
                    .window('open');
                   });

如果传到后台乱码的话 往后台传还需要用encodeURI转一遍
 $('#tg').datagrid({  //往后台传 
      url:"<%=request.getContextPath()%>/vehicleDataController/vehicleList?vehModelName="+encodeURI(vehModelName)+"&flag="+flag,   
原文地址:https://www.cnblogs.com/cuijinlong/p/7044782.html