1.先在A页面对带有参数的链接进行编码
var str = encodeURIComponent('带有参数的链接')
window.location.href = '/wechat/index.html?str ='+str
2.在接受参数的页面进行解码
var str= decodeURIComponent(str)
此时拿到的str就是传递过来的带有参数的链接
1.先在A页面对带有参数的链接进行编码
var str = encodeURIComponent('带有参数的链接')
window.location.href = '/wechat/index.html?str ='+str
2.在接受参数的页面进行解码
var str= decodeURIComponent(str)
此时拿到的str就是传递过来的带有参数的链接