传数据
wx.navigateTo({
url: '/pages/newsdetail/newsdetail?tea=' + JSON.stringify(this.data.newlist[id-1])
})
 
接数据
onLoad: function (options) {
// 传过来的数据在此处接受,options为对象格式
let item = JSON.parse(options.tea);
console.log(item);
this.setData({ newdetail: item });
},
 

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-08-31
  • 2022-12-23
  • 2022-02-07
  • 2021-07-15
  • 2021-08-24
猜你喜欢
  • 2021-06-06
  • 2022-12-23
  • 2021-06-12
  • 2022-03-09
  • 2022-02-07
  • 2021-06-30
  • 2022-01-02
相关资源
相似解决方案