Applet routing of mass participation

There is a problem here, if you want to pass character, better said, if the boolean value is passed in the past, taken over or string

Applet routing jump in two ways: wx.navigateTo () will back button; wx.redirectTo () will not have to jump routes

1, wx.navigateTo () routing Jump  

2, wx.redirectTo () route redirection

3, navigateBack () returns the page

There are also several detailed look at some of the big brother can write   https://www.cnblogs.com/cckui/p/10007976.html   (I write it just the equivalent of a note, if useful, then it is naturally the best )

 

Routing parameter passing:

 wx.navigateTo({
    url: '../shopdetail/shopdetail?id=' +id
})

Go to the page onLoad life cycle

the onLoad: function (Options) { 
  the console.log (Options) // print look pass over no   
}

 

Gangster accompanying link https://www.jianshu.com/p/f024e3d0d228

 

Guess you like

Origin www.cnblogs.com/TreeCTJ/p/11613704.html