如果需要传递整个对象,如下:
let obj = JSON.stringify(item)
wx.navigateTo({ url: `/pages/detail/main?obj=${obj}` })
}
this.item = JSON.parse(obj)
参与评论
手机查看