在index.wxml中
<view class=”container”>hello world</view>
就可以打出hellow world
上面到下面依次是navigationBar,background,page,tabbar

app.json中写:
{
"entryPagePath": "pages/index/index",
"pages": ["pages/index/index",
"pages/profile/profile","pages/about/about"],
//顶部的标题
"window": {
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#FF0000",
"navigationBarTitleText": "study mp",
"navigationStyle": "default"
},
//下面的导航栏
"tabBar":{
"color": "#0000FF","selectedColor": "#FF0000",
"position": "bottom",
"custom": false,
"list": [{"pagePath": "pages/index/index","text": "首页"},{"pagePath": "pages/profile/profile","text": "关于"}]
},
"style": "v2",
"networkTimeout": {"request": 20000,"uploadFile":20000,"connectSocket": 20000,"downloadFile": 20000},
"permission": {
"scope.userLocation": {"desc": "用于给你提供更精准的定位"}
}
}

发表回复