# Mini Program configuration
# Global configuration
Under the root directory of the Mini Program app.json
The file is used to configure the WeChat Mini Program globally, determine the path of the page file, the window performance, set the network timeout time, set the multiple tab Etc.
For the full configuration item explaination, please refer toMini Program Global Configuration
The following is a list of common configuration options app.json
:
{
"pages": [
"pages/index/index",
"pages/logs/index"
],
"window": {
"navigationBarTitleText": "Demo"
},
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": "Home"
}, {
"pagePath": "pages/logs/index",
"text": "Log"
}]
},
"networkTimeout": {
"request": 10000,
"downloadFile": 10000
},
"debug": true
}
For the full configuration item explaination, please refer toMini Program Global Configuration
# Page configuration
Each Mini Program page can also use the same name .json
File to configure the window representation of this page. The configuration item in the page overrides the app.json
of window
The same configuration item in the.
For the full configuration item explaination, please refer toMini Program page configuration
For example:
{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "WeChat interface function demonstration,"
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light"
}