Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mefengl/wx-miniprogram-note


https://github.com/mefengl/wx-miniprogram-note

Last synced: 11 days ago
JSON representation

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)