您可以使用以下代码来取消 page.json 中定义的下拉刷新事件:

Page({
  onPullDownRefresh: function () {
    wx.stopPullDownRefresh(); // 取消下拉刷新事件
  }
})

此代码将在 page.json 中定义的 onPullDownRefresh 函数中调用 wx.stopPullDownRefresh() 函数,以取消下拉刷新事件。

小程序取消下拉刷新事件:JavaScript 代码示例

原文地址: https://www.cveoy.top/t/topic/mYCD 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录