Eleventh Lecture Development Framework This section describes the
The basic framework of the micro-channel applet
- wxml
- wxss
- wxs
- javascript
Part 12 WXML
WXML framework is a set of label design language, combined with components, WXS and transaction systems can be constructed structure of the page
syntax
<标签名 属性名="属性1" 属性名="属性2" ...>
...
</标签名>
<view>hello,world</view>
<view>hello,china</view>
Data WXML feature of Part 13 Bind
helloworld.js
Page({
data: {
flag : false,
flag1: true
}
})
Page({
data:{
theName:"jack"
}
})
helloworld.wxml
<view hidden="{{flag ? true : false}}">
hidden
</view>
<view hidden="{{flag1 ? true : false}}">
hidden
</view>
<view>
<text data-name="{{theName}}">
</text>
</view>