小程序如何监听页面滚动,小程序没有window对象,也就意味着没有window.onscroll方法,那我要怎么才能监听页面滚动呢?
onPageScroll Function 页面滚动触发事件的处理函数
https://mp.weixin.qq.com/debu...
用 scroll-view 控件,配合 bindscroll 这个事件来实现。
scroll-view
bindscroll
10 回答11.2k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.7k 阅读✓ 已解决
3 回答2.3k 阅读✓ 已解决
3 回答2.2k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
7 回答59.1k 阅读
1.6k 阅读
5 回答6.9k 阅读
2 回答5.4k 阅读
3 回答5.6k 阅读
onPageScroll Function 页面滚动触发事件的处理函数
https://mp.weixin.qq.com/debu...