- 全局导航栏样式设置
在微信小程序项目的app.json中对全局的页面配置进行设置,json中有一项配置window可设置上方导航栏的属性,在json文件中写上window,按table键补全即会出现navigationBar的各项属性,如下
"window": {
"navigationBarBackgroundColor": "#000000",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "About",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "dark",
"enablePullDownRefresh": tr