小程序 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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM