onPullDownRefresh刷新问题
发布于 5 年前 作者 tshen 6635 次浏览 来自 问答

在配置文件中配置了

“enablePullDownRefresh”:true

下拉刷新时不出发

onPullDownRefresh方法

onPullDownRefresh:function(){

// this.refresh

wx.showLoading({

title: ‘加载中’,

})

wx.stopPullDownRefresh()

},

3 回复

你好,请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

当我下拉刷新时不执行这段代码块: onPullDownRefresh: function () {     wx.showLoading({       title: ‘加载中’,     })      wx.stopPullDownRefresh()  },样式文件:

{{item.desc}}作者:{{item.who}}

你好,我的也是这样,请问你的问题解决了吗?

回到顶部