js 滚动加载(监听容器下拉滚动事件)

scroll-loading

js 监听容器下拉滚动事件
获取数据的自定义方法,放在init回调或者scrollEnd回调里面触发

Usage

demo:https://cgygd.github.io/scroll-loading/index.html

options element - 绑定的容器 type: String('body' || '#id' || '.class') required : true triggerDistance - 距离底部多少像素开始触发 type: Number required : false default : 0 Listeners init - 初始化成功触发事件 type: function scrollEnd - 每次滚动成功触发事件 type: function

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。