小程序 scroll-view 无法触发 onReachBottom 解决办法

<scroll-view bindscrolltolower="YourFunction" lower-threshold="50"></scroll-view>
1 YoourFunction(){
2     console.log("触底了");
3     wx.showToast({
4       title: '加载中...',
5       icon: 'loading',
6       duration: 2000
7     })
8 }

bindscrolltolower eventhandle 滚动到底部/右边时触发

lower-threshold number/string 距底部/右边多远时,触发 scrolltolower 事件

文档:https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html