Jump micro-channel routing applet parameters received and

* method one

Add url to pass data back? Carry parameters

wx.navigateTo({
   url: '../login/login?username=abc',
   success: function(res) {
   },
   fail: function(res) {
   },
   complete: function(res) {
   },
})

* Second way

<Navigator url = "./ home / home"> jump to a new page </ navigator>

* Data taken

Remove the delivery of data

this.data.username

Others, such as redirection jump to read the micro-channel tabtar applet official api

https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateBack.html

 

Guess you like

Origin www.cnblogs.com/lschuan/p/11354084.html