页面上拉为什么会触发onReachBottom
在开发者工具中,下拉为什么会触发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
