uniapp带url参跳转后面的拼接参数接收不到

354 阅读1分钟

1.通过 encodeURIComponent(JSON.stringify( ))

FindUrl(url) { uni.navigateTo({ url: '../findlist/findlist?url=' + encodeURIComponent(JSON.stringify(url)) }) }, `

2.接收通过 //通过 JSON.parse(decodeURIComponent()) 解码 onLoad(option) { this.listUrl = JSON.parse(decodeURIComponent(option.url)) },