Get the App
SLTechnology News&Howtos  ›  Development  › 

How to pass values between WeChat Mini Programs's js pages

Shulou Source: shulou.com Published: 2022-06-01 06:58:39 10月03日 Update

This article editor for you a detailed introduction of "WeChat Mini Programs js page how to transfer value", the content is detailed, the steps are clear, the details are handled properly, I hope this "WeChat Mini Programs js page how to transfer value" article can help you solve doubts, the following follow the editor's ideas slowly in-depth, together to learn new knowledge.

Value passed between 1.js pages: url: 'path value =' + get the value of the page

Example 1:

PageSkip: function () {

Wx.navigateTo ({

Url:'/ page/login/facteshopsName='+this.data.shopsName

})

}

Example 2:

PageSkip: function () {

Wx.navigateTo ({

Url:'/ page/index/poersid=2 & shopsName='+this.data.shopsName

})

}

Example 3:

PageSkip: function () {

Wx.navigateTo ({

Url:'/ page/index/poerIndexsid=2 & shopsName='+this.data.shopsName+'&goodsId='+thi.data.goodsId

})

}

Passed value in 2.wxml: url= "page path value = get the page value"

Example 4:

Example 5:

After reading this, the article "how to transmit value between WeChat Mini Programs js pages" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, welcome to follow the industry information channel.

Tags: Pages examples programs articles content paths proper ideas new knowledge more steps knowledge knowledge points articles details industry information information channels follow channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Xiaomi Apple Huawei Microsoft