Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How Mini Program closes the current page and returns to the previous page

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This "Mini Program how to close the current page to return to the previous page" article, the sample code in the article is very detailed, has a certain reference value, interested friends must refer to, for the "Mini Program how to close the current page to return to the previous page", the editor sorted out the following knowledge points, please follow the pace of the editor step by step slowly understand, then let's get into the topic.

Close the current page and return to the previous or multi-level page. You can get the current page stack through getCurrentPages () and decide how many layers you need to return.

OBJECT parameter description:

The default value of the parameter type indicates the number of pages returned by deltaNumber1. If the delta is greater than the number of existing pages, return to the home page.

Sample code:

/ / Note: when a navigateTo jump is called, the page that calls this method will be added to the stack, but the redirectTo method will not. See the sample code below / / here is the A page wx.navigateTo ({url: 'branded url 1'}) / / here is the B page wx.navigateTo ({url:' Clearidair1'}) / / in the C page navigateBack, you will return the A page wx.navigateBack ({delta: 2}) what is the advantage of Mini Program compared to developers, Mini Program is less difficult to develop, can save development and operating costs So that developers can quickly develop a Mini Program. And Mini Program can be easily obtained and spread in Wechat, which can meet the basic life applications, in line with life services offline stores and non-rigid needs of low-frequency applications. For users, it can save time cost and mobile phone memory space, and have excellent use experience at the same time.

The above is all the contents of the article "how Mini Program closes the current page to return to the previous page". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report