作者:高档的干果ieb | 来源:互联网 | 2022-07-18 22:53
本篇文章给大家带来的内容是关于微信小程序中app.json配置的代码解析,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
app.json配置详细分析
{
"pages": [ "pages/index/index", "pages/vultr/vultr"
],
"window": {
"navigationBarBackgroundColor": "#ff99bb",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "小程序",
"backgroundColor": "#c2f0f0",
"backgroundTextStyle": "light",
"enablePullDownRefresh": true
},
"tabBar": {
"color": "#ff99ff",
"selectedColor": "#99bbff",
"backgroundColor": "#ff4dd2",
"borderStyle": "black",
"position":"top",
"list": [{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "img/1.png",
"selectedIconPath": "img/3.png"
},{
"pagePath": "pages/vultr/vultr",
"text": "科学",
"iconPath": "img/2.png",
"selectedIconPath": "img/3.png"
}] },
"networkTimeout": {
"request": 20000,
"connectSocket": 20000,
"uploadFile": 20000,
"downloadFile": 20000
}}
结构分成4部分
页面注册
窗体设置
菜单栏设置
网络延迟设置
页面注册
窗体设置
菜单栏设置
网络延迟设置