In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
Most people do not understand the knowledge points of this article "WeChat Mini Programs how to achieve value transfer and page value operation", so the editor summarizes the following contents to you. The content is detailed, the steps are clear, and it has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "WeChat Mini Programs how to achieve value transfer and page value operation" article.
WeChat Mini Programs passes values between pages
Value passed between 1.js pages: url: 'path? Value ='+ get the value of the page
Example 1:
PageSkip: function () {wx.navigateTo ({url:'/ page/login/facte?shopsName='+this.data.shopsName,})}
Example 2:
PageSkip: function () {wx.navigateTo ({url:'/ page/index/poer?sid=2 & shopsName='+this.data.shopsName,})}
Example 3:
PageSkip: function () {wx.navigateTo ({url:'/ page/index/poerIndex?sid=2 & shopsName='+this.data.shopsName+'&goodsId='+thi.data.goodsId,})}
Value passed in 2.wxml: url= "page path? value = get the page value"
Example 4:
Example 5:
WeChat Mini Programs page value
WeChat Mini Programs js accepts the value passed on the page:
1. The parameter name of this page is local variable: onLoad: function (options) {var this page parameter name = options. Parameter name of the previous value page}
Example:
OnLoad: function (options) {var shopsName=options.shopsName}
two。 The parameter name of this page is the global variable: onLoad: function (options) {the parameter name of this page = options. Parameter name of the previous value page}
Example:
OnLoad: function (options) {this.data.shopsName=options.shopsName}
Note: no matter whether the previous page is passed through js or wxml, the value method of this page is the same as above.
The above is about the content of this article on "how to transfer values and page values for WeChat Mini Programs". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more related knowledge, please pay attention to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.