Micro letter applet page jump achieved in several ways

Jump page mode

Use the navigation components, labels, page links to achieve (can be found in the background when clicked)

 <navigator url="/pages/home/home">跳转</navigator>

By wx.redirectTo realize jump (close the current page, jump to a page within the application)

wx.redirectTo({
      url: '/pages/home/home'
    })

(To return to the original page to keep the current page, jump to a page within the application, using wx.navigateBack) achieved by wx.navigateTo Jump

wx.navigatorTo({
      url: '/pages/home/home'
    })

Wx.navigateBack by a return (close the current page. Back to the previous page or multi-stage)

 wx.navigateBack({ 
      delta: 1
    })

 

Guess you like

Origin www.cnblogs.com/xiaonangua/p/12131840.html