better-scroll滑动库
- BetterScroll是一款重点解决移动端(已支持PC)各种滚动场景需求的插件。它的核心是借鉴 iscroll 的实现,它的API设计基本兼容iscroll,在iscroll的基础上又扩展了一些feature以及做了一些性能优化
- 官网:https://better-scroll.github.io/docs/zh-CN/
better-scroll相关方法
- 下拉上拉的配置:pullDownRefresh,pullUpLoad,threshold
- 下拉上拉事件:srollStart,pullingDown、pullingUp