didib

在需要页面之间传递多个参数的时候,需要用&链接起来,上一页的正确跳转代码如下:

var that = this;
wx.navigateTo({
url: \'../../pages/myListDetail/myListDetail?idx=\' + that.data.currentTab + \'&parameterId=\' + that.data.parameterId+\'&888=\'+888
})
打印目标页面的onLoad函数的事件:
onLoad: function (options) {
console.log(options);
}
 
结果如下:

 

小程序界面之间经过测试不能传递对象数据。

 

分类:

技术点:

相关文章:

  • 2022-01-16
  • 2022-02-07
  • 2022-12-23
  • 2021-11-21
  • 2021-12-19
  • 2021-07-05
  • 2022-12-23
猜你喜欢
  • 2021-06-05
  • 2021-07-15
  • 2021-06-30
  • 2022-02-07
  • 2021-11-01
  • 2022-02-07
相关资源
相似解决方案