Five methods required for mini programs to jump to pages

不言
Release: 2018-08-16 15:18:55
Original
3366 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!