微信小程序基础

微信小程序记录

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
App:
- onLaunch
- onShow
- onHide
- onUnload
- data(global data)
- private method

Page:
- onLoad
- onShow
- onReady
- onHide
- onUnload
- data
- private method

Component:
- properties(key、type、observer)
- data
- options(styleIsolation, multipleSlots)
- externalClassess []
- pageLifetimes- onShow、onHide、onUnload
- lifetimes - created、attached、detached
- observers
- methods

Templates:
- include、import

Wxs:
- <wxs module="" src=""/>

Slot:
- include name

Page-Component:
- bind、catch、triggerEvent、selectComponent