冷冷冷,冻死了

导航

通过地址传递中文乱码问题

解决

1.对于变量进行encodeURL编码,注意这里编码需要进行两次编码

content:'location'+location+''?content='+encodeURI(encodeURI(jyryContent))                                  

然后再前端对传递的变量进行解码

var jyryContent = decodeURI(getParms("content"));

 

 

 

posted on 2022-02-19 14:24  沙湖遇雨  阅读(27)  评论(0)    收藏  举报