举例:导出方法
function daochu_xq(){
location.href=encodeURI(encodeURI("getCommonFzcltj_xqExcel?requestSrc=1&carname="+carname_daochu+"&jllx="+jllx_daochu));
}//此处用了两个encodeURI,是加密措施
controller中的获取方法
String jllx=hashMap.get("jllx").toString();//此处的jllx是乱码的
jllx=URLDecoder.decode(jllx,"UTF-8");//此处就已经不乱码了
String carname=hashMap.get("carname").toString();
carname=URLDecoder.decode(carname,"UTF-8");

1078

被折叠的 条评论
为什么被折叠?



