需要encodeURI。一开始使用tomcat7最高版本,发现IE会乱码,修改为tomcat7.0.42解决。后期因tomcat7有安全风险因此修改为tomcat9,未重新使用IE浏览器统测因为出现问题。