The app. json file is used to globally configure the applet to determine the path and window performance of the page file, set the Network timeout time, and set multiple tabs. In the previous article, I also gave a brief introduction to the app. json file. then I just read the official document to introduce the details: 1. global configuration
2. return to the topic. the app. json file is used to globally configure the applet. it determines the path and window performance of the page file, sets the Network timeout time, and sets multiple tabs. In the previous article, I also gave a brief introduction to the app. json file. then I just read the official documentation to introduce the details:
App. json
{"Pages": ["pages/index", "pages/logs"], "window": {"backgroundTextStyle": "dark", "navigationBarBackgroundColor ": "# ddd", "navigationBarTitleText": "configuration test DEMO", "navigationBarTextStyle": "black", "backgroundColor": "# ff0000"}, "tabBar ": {"color": "#000000", "borderStyle": "black", "selectedColor": "# 9999FF", "list": [{"pagePath ": "pages/index", "text": "homepage", "iconPath": "image/location_normal.png", "selectedIconPath": "image/location_selected.png "}, {"pagePath": "pages/logs", "text": "settings", "iconPath": "image/setting_normal.png", "selectedIconPath ": "image/setting_selecred.png"}]}
For more small program development: For more information about configuration, see PHP Chinese network!