在开发中会经常用到页面之间的跳转以及传值,在官方文档中提供了跳转的接口
小程序具体的实现代码如下:
1.跳转的实现:

 toNextView:function(e){    wx.navigateTo({      url: '../xxxx/xxxx?id=1' ,    })  }

2.接收参数:

 onLoad: function (options) {    id=options.id;    console.log(id);  },

这样就可以实现基础数据的传递。

TAG标签: 微信小程序小程序页面传值

http://www.xiaochengxub.com/read-105589.html