1.0.6 • Published 6 years ago
business-loading v1.0.6
loading 无限加载功能
安装方法
npm install business-loading
引用方式
import *** from 'business-loading'
使用方法
1. 需要在 HTML 中指定一个上拉加载的容器,现在支持class,用于触发位置判断,例如:
<div class="more"></div>
2. 在监听滚动事件中,使用 isThreshold api, 带参数容器:
window.onscroll = function () {
***.isThreshold('more');
// console.log(***.isThreshold('more'))
}