首先在json中;
{ "usingComponents": {}, "enablePullDownRefresh": true, "backgroundTextStyle": "dark"}
然后在xx.js中:
onPullDownRefresh() { // wx.startPullDownRefresh() console.log(1) wx.stopPullDownRefresh() //停止下拉刷新 一定要加 不然一直刷新 wx.hideLoading(); }
文章转载于:https://www.jianshu.com/p/07e2b75cffc8
原著是一个有趣的人,若有侵权,请通知删除
还没有人抢沙发呢~