关于小程序全局配置的一些坑

1.导航栏

{
  "window":{
    "navigationBarBackgroundColor": "#268DCD", //此处只能用hexcolor
    "navigationBarTextStyle": "black",//只能black、white两个值
    "navigationBarTitleText": "wechat",
    "backgroundColor": "#000000",
    "backgroundTextStyle": "light"
  }
}

2.页面刷新

因为只能页面刷新,所以不能出现在全局配置中。 

用法:

下拉刷新

 wx.startPullDownRefresh()

停止当前页面下拉刷新

Page({
  onPullDownRefresh: function(){
    wx.stopPullDownRefresh()
  }
})

猜你喜欢

转载自blog.csdn.net/irene_five/article/details/83143408