Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mefengl/wx-miniprogram-note
https://github.com/mefengl/wx-miniprogram-note
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mefengl/wx-miniprogram-note
- Owner: mefengl
- License: mit
- Created: 2023-06-29T03:24:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-29T07:38:37.000Z (over 1 year ago)
- Last Synced: 2024-10-30T10:15:42.677Z (about 2 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wx-miniprogram-note
## page 参数
```js
// 传递参数
wx.navigateTo({
url: `page/index/index?id=${id}`
})
``````js
// 接收参数
onLoad: function (options) {
console.log(options.id)
}
```## component 参数
```js
// 传递参数```
```js
// 接收参数
Component({
properties: {
id: {
type: String,
value: 'default value',
}
},
attached: function () {
console.log(this.properties.id)
// 也可以直接在 wxml 中使用 {{id}}
}
})
```## 跳转小程序
### appid
详情可见
### path
https://developers.weixin.qq.com/community/develop/article/doc/0008066531c28043d2185a4d356813
官网选择生成小程序码
## QA
[text嵌套bindtap失效](https://developers.weixin.qq.com/community/develop/doc/0000802480c5d08c3ee727fe756800)