- attended(e) {
- this.id = e.baseId
- let obj = {
- page: this.page,
- size: this.pageSize,
- baseId: e.baseId,
- str: this.str
- uni.navigateTo({
- url: `/pages/index/index?item=` + encodeURIComponent(JSON.stringify(obj))
- })
- }
- },
encodeURIComponent
- onLoad(options) {
- this.other = JSON.parse(decodeURIComponent(options.other)
- },
decodeURIComponent
在onload 生命周期里,如果遇到传参里有,复杂的参数,可以参考我的
这篇文章