index.wxml

<navigator  class="navs" url="{{urls}}">
    中国
</navigator>

index.js

Page({
  data: {
    urls:'/pages/lanbo/lanbo?title=我是Index里面的title数据'
  }
})

 

要跳转的页面lanbo页面

lanbo.wxml

<text>pages/lanbo/lanbo.wxml</text>

lanbo.js

Page({
  data: {
  
  },
  onLoad: function (options) {
    this.setData({
      title:options.title
    });
    console.log(this.data.title);
  }
})

跳转页面之后请在调试模式下中的console下查看数据。

 

相关文章:

  • 2022-01-07
  • 2022-02-07
  • 2022-01-01
  • 2021-06-16
  • 2022-02-21
  • 2021-11-26
  • 2021-12-18
  • 2021-05-14
猜你喜欢
  • 2021-11-06
  • 2022-12-23
  • 2021-11-04
  • 2021-09-17
  • 2021-06-09
  • 2021-08-26
  • 2022-01-15
相关资源
相似解决方案