Small program learning (4)-detailed explanation of app. json configuration in the system, small program app. json
"Window": {"backgroundTextStyle": "light", "navigationBarBackgroundColor": "# f0f", "navigationBarTitleText": "My applets", "navigationBarTextStyle ": "black", "backgroundColor": "# eeeeeeee", "navigationBarTitleStyle": "black", "statusBarTextStyle": "black "},
System Configuration
The system configuration file is the app. json file. The main configuration items are pages, window, tabBar, networkTimeout, and debug. The file is json data.The comment line cannot be added to the file.
1. pages
Is an array parameter, each piece of data represents a page, each time you create a page, you must register here to jump to and display this page, when registering the page, you do not need to write the file suffix. Here I have written four pages, with the index as the main page. The logs page displays the access logs of applets; main here is a simple calculator interface; calList is the calculation result log page.
2. window
Set the status bar, navigation bar, title, and background color of the window of the applet.
3 tabBar
The following are some of my configurations.
NOTE: If tabBar is set, there must be at least two and no more than five.
4. networkTimeout and debug
Generally, dubug parameters are not required.
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.