【WeChat applet】——page jump navigator, redirectTo, switchTab, .reLaunch and interface title setting api method

Navigation component:

1. The navigator page connects components, and there is a return arrow after jumping to return to the previous interface

  1. target
  2. url
  3. open-type

2.wx.navigateTo retains the current page jump, and there is a return arrow after the jump to return to the previous interface

3.wx.redirectTo closes the current page jump, and can only return to the home page after the jump

4.wx.switchTab jumps to the tabBar page and specifies the tabBar interface

5. Set the navigation bar

6.wx.reLaunch closes all interfaces and jumps to close all including the navigation bar.

Use the corresponding API to jump:

At the same time setNavigationBarTitleAPI is used to set the title of the interface

Guess you like

Origin blog.csdn.net/lijingxiaov5/article/details/124718800