<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

 

相关文章:

  • 2022-12-23
  • 2022-01-26
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2021-12-02
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2021-04-30
  • 2022-02-04
相关资源
相似解决方案