0 == structures and components applets
1 == applet common components: text text attribute
3 == applet UI component view properties hover mouse clicks appear effect hover
4 == properties applet components ui Button button assembly
5 == applet input ui component attribute input box
6 == applet component image attribute ui
7 == applet style 1rpx = 0 Dian physical pixels 5px = 1
8 == applet styles can be introduced using a relative path @import
9 == applet global configuration file appJSON role
Item 10 common configuration applet window == node
11 == node configuration applet tabBar
12 == tabBar applet icon size 81px
13 == applet page-level configuration items
Life Cycle Life Cycle 14 == both applications and applets page life cycle
== applet 15 may be used for the data property attribute nodes and ternary content nodes expression
16 == applet binding events using bindTap
17 == applet bindinput bound text box to enter the event (e)
18 == applet data synchronization this. setData reassigned
Passing parameters 19 == applet
20 == applet get the passed parameters e · target · dataset · info
21 == applet wsx members exposed outward
22 == applets exs script code examples
23 == applet wxml script file referenced in wxs
24 == applet wxml use of methods and references wsx
25 == applet outreach wxs file contents exposed outward members
== 26 using an external applet method steps wxs
The introduction of an external file wxs
first step: wxs a well-defined functions and content through module. To expose exports
var foo = 'Hello World 123ddd'
var = fo1 of function (MSG) {
return '===' foo + + MSG
}
module.exports = {
foo: foo,
fo1 of: fo1 of
}
module.exports.msg = " msg ???????? "
Second Step:
<WXS the src = "../ tools.wxs" module = "Tools" /> module incorporated in and define the name wsml
The third step can be used in WSML
<View> {} {} ??????????????? tools.foo </ View>
<View> {{tools.fo1 ( "Hello, 8888 ")}} </ View>
<View> tools.msg {{}} </ View>
27 == conditions applets rendering wx: if
28 == applet traverse wx: for
29 == slip event monitor applet page
30 == applet monitor user behavior forwarding events
31 == small program settings to forward content and custom path path
32 == applet listens tap bar event triggers