页面上拉为什么会触发onReachBottom
发布于 5 年前 作者 majie 18568 次浏览 来自 问答

在开发者工具中,下拉为什么会触发onReachBottom事件呢?还有上拉的事件根本不触发…!

JS代码:

onReachBottom:function(){
    wx.showToast({
      title: '上拉加载',
      icon: 'succes',
      duration: 1000,
      mask: true
    });
  },
  /**
   * 下拉刷新
   */
  onPullDownRefresh:function(){
    wx.showToast({
      title: '333',
      icon: 'succes',
      duration: 1000,
      mask: true
    });
  }

在当前的页面的json中配置如下:

{
  "enablePullDownRefresh": true,
  "onReachBottomDistance":50
}

页面上只有view没有用到滑块scroll-view

1 回复

你好,方便提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)?

回到顶部