两个页面跳转传中文参数,中文出现乱码解决方法

// encodeURI 编码

window.location.href(encodeURI("zhongji2.html"+"?"+"parm1="+parm1+"&parm2="+parm2+"&parm3="+parm3+"&parm4="+parm4));
// decodeURI 解码
var url=decodeURI(location.href);
 
搞定
原文地址:https://www.cnblogs.com/gqx-html/p/7464075.html