The content of this article is about the five methods required for mini programs to jump to pages. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
1. wx.navigateTo(object):
Keep the current page and jump to a page in the application; open a new page (the new page is pushed into the stack)
2 , wx.redirectTo(object):
Close the current page and jump to a page within the application. Page redirection (the current page is popped out of the stack, and the new page is pushed into the stack)
3. wx.reLauch(object):
Close all pages and open to a certain page in the application. Reload (all pages are popped from the stack, leaving only new pages);
4. wx.navigateBack (object):
Close the current page and return to the previous page or multi-level page. Return to the previous page, the page returns (the page keeps popping out of the stack)
5. wx.switchTab(object):
Jump to the new tabBar page. And close other pages; (all pages are popped out of the stack, leaving only the new Tabar page)
Related recommendations:
WeChat Mini Program page jump function
How to monitor events when jumping between WeChat applet pages?
Code example for implementing WeChat applet routing to jump to a specified page
The above is the detailed content of Five methods required for mini programs to jump to pages. For more information, please follow other related articles on the PHP Chinese website!