小程序中,拥有很多属性值,通常为背景色,字体等等。
窗口属性举例:
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "教师评教系统",
"navigationBarTextStyle": "black",
"enablePullDownRefresh":true,
"backgroundColor":"#ff0"
}
}
navigationBarBackgroundColor是小程序顶部导航的颜色,navigationBarTitleText是小程序顶部导航的文字,navigationBarTextStyle是导航的样式颜色。
enablePullDownRefresh是下拉刷新的属性,true为使用,false为不使用,backgroundColor是下拉刷新时的颜色,并不是字面意义的背景色。若需要设置背景色则可以在wxss中利用page定义background-color进行设置。