下拉刷新数据
如果是下拉加载数据的写法。
onPullDownRefresh() { wx.showNavigationBarLoading() //在标题栏中显示加载 this.getDatas(); setTimeout(function () { wx.hideNavigationBarLoading() //完成停止加载 wx.stopPullDownRefresh() //停止下拉刷新 }, 1500); },
配置项如下:
{ "navigationBarTitleText": "信息", "enablePullDownRefresh": true, "navigationBarBackgroundColor":"#ff3", "navigationBarTextStyle":"white", "enableReachBottom": true, "usingComponents": {} }。
如需转载原创文章,请标注原文地址,版权所有!
浙公网安备 33010602011771号