ie地址栏不能识别中文参数(google浏览器是正常的)

前言:

var  name="小明";
window.location.href="http://XXXXXXX?name="+encodeURI(name);//中文转code码让id识别

ie就可以识别了

猜你喜欢

转载自blog.csdn.net/dongsdh/article/details/81360031
今日推荐