Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the page jump of Mini Program

Shulou Source: shulou.com Published: 2022-06-01 06:59:12 10月02日 Update

This article mainly explains "how to realize page jump on Mini Program". Interested friends may wish to take a look at it. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "Mini Program how to achieve page jump" bar!

1. Keep the current page and jump to another page in the application: wx.navigateTo ({url: 'page path',})

Example:

PageSkip: function () {

Wx.navigateTo ({

Url:'/ page/admin/business'

})

}

two。 Close the current page and return to one or more levels of the page: wx.navigateBack ({url: 'page path',})

Example:

PageSkip: function () {

Wx.navigateBack ({

Url:'/ page/admin/shops'

})

}

3. Close the current page and jump to a page within the application: wx.redirectTo ({url: 'page path',})

Example:

PageSkip: function () {

Wx.redirectTo ({

Url:'/ page/index'

})

}

4. Close all pages and open a page within the application: wx.reLaunch ({url: 'page path',})

Example:

PageSkip: function () {

Wx.reLaunch ({

Url:'/ page/login'

})

}

5. Jump to the tabBar page and close all other non-tabBar pages: wx.switchTab ({url: 'page path',})

Example:

PageSkip: function () {

Wx.switchTab ({

Url:'/ page/shops/homepage'

})

}

Attached: page jump in wxml:

Example:

At this point, I believe that everyone on the "Mini Program how to achieve page jump" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Pages examples paths programs applications content learning practicality depth interest practicality simplicity of operation methods more friends websites channels inquiries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information macOS NVidia Shulou Technology Linux