Home  >  Article  >  WeChat Applet  >  Summary about jumping to the current instance

Summary about jumping to the current instance

零下一度
零下一度Original
2017-06-11 10:48:321744browse

WeChat applet routing jumps, there are three forms. The navigator component is used in the page to make page link routing jumps. In js, wx.navigateTo can be used to retain the current page and jump to a certain page in the application. , wx.redirectTo--Close the current page and jump to a page in the application wx.navigateBack()--Close the current page and go back to the previous page. The navigator component makes page links. Attribute name. type Default value &a

1. WeChat applet routing jump instance usage summary

Summary about jumping to the current instance

Introduction: There are three forms of WeChat applet routing jumps. The navigator component is used in the page to do page link routing jumps. In js, wx.navigateTo can be used--retain the current page and jump to the application. A page within the application, wx.redirectTo--close the current page and jump to a page within the application wx.navigateBack()--close the current page and go back to the previous page. The navigator component makes page links 

##Introduction: There are three forms of WeChat applet routing jumps. The navigator component is used in the page to make page link routing jumps. In js, you can use wx.navigateTo--retain the current page and jump to a page within the application, wx.redirectTo--close the current page and jump to a page within the application wx.navigateBack()--close the current page page, go back to the previous page.

Summary about jumping to the current instance3. Introduction to WeChat Development (11) Update the data on the previous page

Introduction: There is often such a need during the development of small programs. It is necessary to pass the current page data to the previous page, but wx.navigateBack() cannot pass the data. The general method is to put the current page data into the local cache, and then take the previous page out of the cache.

Summary about jumping to the current instance4. Solution to error config:invalid signature

##Introduction: If it is an invalid signature signature error. It is recommended to check in the following order: 1. Confirm that the signature algorithm is correct, and you can use the http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=jsapisign page tool for verification. 2. Confirm that the nonceStr (standard capital S in camel case in js) and timestamp in the config are consistent with the corresponding noncestr and timestamp used in the signature. 3. Confirm that the url is the complete url of the page (please confirm on the current page alert(location.href.split('#')[0])

5. Summary about jumping to the current instanceImplement WeChat Code example for mini program routing to jump to a specified page

Introduction: How to implement WeChat mini program routing jump Specify a page? There are three forms of WeChat applet routing jumps. The navigator component is used in the page to make routing jumps in the form of page links. In js, wx.navigateTo can be used to retain the current page and jump to a certain page in the application. , wx.redirectTo--Close the current page and jump to a page in the application wx.navigateBack()--Close the current page and go back to the previous page.

6. Summary about jumping to the current instanceSimple comprehensive application of php form submission to obtain data to the current page

Introduction: The form is implemented A main external form of dynamic web pages, using forms to collect information submitted by clients is an important part of website interaction.

7. html meta tips for solving garbled characters

Summary about jumping to the current instance

Introduction: In html, meta is used to solve garbled characters. It can tell the browser the encoding and document type code used by the current page: In addition, meta can also be used to implement a scheduled jump function. For example, after 3 seconds, jump to a certain page code:

8. WeChat Mini Program Component: Navigator Page Link Interpretation and Analysis

Summary about jumping to the current instance

Introduction: Usage of navigator page link components: Tip: Official regulations stipulate that a mini program can only have a maximum of five pages existing at the same time, which means that a maximum of five new pages can be opened without closing the page, and the page depth is 5. When the page stack reaches 5, it will not be able to jump. When the navigator component has a redirect attribute (regardless of whether the value of redirect is true or false), the current page will be closed and jumped to the target page, and the page stack will not change. When the redirect attribute does not exist in the navigator component, the current page is retained, jumps to the target page, and the page stack is increased by 1.

9. Detailed explanation to fix the error in printing the current page in PHP

Summary about jumping to the current instance

##Introduction: When I was making the query system, everything was normal, but every time I printed, I found an error and couldn't print the current page. I thought about it, is there something wrong with my expression?

10. JavaScript implements sample code sharing to get remote html to the current page

Summary about jumping to the current instance

Introduction: I am working on a project today. I need to reference a remote html page in the current html page. After searching on Baidu, I found a very useful code. I will share it with you here. Friends who have the same needs can take a look at

[Related Q&A recommendations]:

objective-c - It takes a long time to jump to the iOS page For a ViewController loaded at a certain time, the page will stay in the current view and wait for the target view to be loaded before jumping. How to jump first and then load?

php - After clicking, the system is processing. You can close the current page and come back in a few minutes to check. How to achieve the processing progress?

About the return method in laravel

android fragment switches blank

javascript - uirouter more Views share controller problem

The above is the detailed content of Summary about jumping to the current instance. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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