带url参跳转接收不到路劲的拼接的参数问题
1、通过转码url再通过解码url可以接收到
//通过 encodeURIComponent(JSON.stringify( ))
findlist(url) {
uni.navigateTo({
url: '../findlist/findlist?url=' + encodeURIComponent(JSON.stringify(url))
})
},
2.跳转接收
//通过 JSON.parse(decodeURIComponent()) 解码
onLoad(option) {
this.list = JSON.parse(decodeURIComponent(option.url))
},