This article mainly introduces the parameters for page jump transmission in small programs. it is of reference value to all of you. if you are interested, you can refer to them. This article mainly introduces the parameters for page jump transmission in small programs. it is of reference value to all of you. if you are interested, you can refer to them.
The page jump of the applet, passing parameter notes between pages, details are as follows:
First, go to the demo diagram:
Jump to new page
Open on current page
The URL in index. wxml is the page path to jump to. in the code above, it is the navigator page under the navigator Directory, and the title is the parameter.
In navigator, the redirect attribute is displayed on the current page. If redirect is not added, it will jump to the new page. parameters can be included.
In navigator, the redirect attribute is displayed on the current page. If redirect is not added, it will jump to the new page. parameters can be included.
{{title}}
The title can be obtained through js code in navigatort. wxml. the code is as follows:
//navigatort.jsPage({ onLoad: function(options) { this.setData({ title: options.title }) } })
{{title}}
//redirect.js Page({ onLoad: function(options) { this.setData({ title: options.title }) } })
The last two jumps to the next graph.
1. jump to the new page
The above is all the content of this article. I hope it will help you learn and support PHP.
For more details about the small program page jump transmission parameters, please follow the PHP Chinese network!