报错原因:跳转地址的传参对象过长
解决:
// 跳转前
let urlName = '...../..../..'
wx.navigateTo({
url: urlName + "?_params=" + encodeURIComponent(JSON.stringify(param))
})
// 跳转后
let param =JSON.parse(decodeURIComponent(options._params))
报错原因:跳转地址的传参对象过长
解决:
// 跳转前
let urlName = '...../..../..'
wx.navigateTo({
url: urlName + "?_params=" + encodeURIComponent(JSON.stringify(param))
})
// 跳转后
let param =JSON.parse(decodeURIComponent(options._params))