下拉刷新

发布于 7 年前作者 yongxiao7764 次浏览最后编辑 7 年前来自 ask

onPullDownRefresh为什么触发不了该函数执行,在ios中能行的通,是不是少配置了东西,是不是只能页面滚动的情况才能出发该函数,为什么在苹果机中,页面也没有滚动,也能触发该函数。

1 回复
gongxia
gongxia1 楼5 年前
  • 需要在 config 的window选项中开启 enablePullDownRefresh

https://developers.weixin.qq.com/miniprogram/dev/api/pulldown.html#onpulldownrefresh