{
"pages":[
"pages/index/index",
"pages/img/img",
"pages/mine/mine",
"pages/search/search",
"pages/demo1/demo1",
"pages/logs/logs"
],
"window":{
"backgroundTextStyle":"dark",
"navigationBarBackgroundColor": "#0094ff",
"navigationBarTitleText": "微信",
"navigationBarTextStyle":"black",
"enablePullDownRefresh": true,
"backgroundColor": "#0094ff"
},
"tabBar": {
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "icon/_a.jpg",
"selectedIconPath": "icon/e.jpg"
},
{
"pagePath": "pages/img/img",
"text": "图片",
"iconPath": "icon/_b.jpg",
"selectedIconPath": "icon/f.jpg"
},
{
"pagePath": "pages/mine/mine",
"text": "我的",
"iconPath": "icon/_c.jpg",
"selectedIconPath": "icon/e.jpg"
},
{
"pagePath": "pages/search/search",
"text": "搜素",
"iconPath": "icon/_d.jpg",
"selectedIconPath": "icon/f.jpg"
}
],
"color": "#ff9400",
"selectedColor": "#ffffff",
"backgroundColor": "#ff5533",
"position": "bottom"
},
"style": "v2",
"sitemapLocation": "sitemap.json"
}
效果图:
上面两张图片是页面配置
上面是数据绑定
<view>{{1+1}}</view>
<view>{{'1'+'1'}}</view>
<view>{{11%2==0?'偶数':'奇数'}}</view>这些事基础运算