README
qhr-scroll-index
获取滚动模块的下标
Usage
import MyUtil from 'qhr-scroll-index'
const myUtil = new MyUtil();
myUtil.getIndex({
ids: ['a', 'aa', 'aaa', 'aaaa', 'aaaaa'],
option: this.observerOpt,
callBack: this.getCurrentCB
})
get scroll index
<script type="module">
import qhrScrollIndex from 'https://cdn.skypack.dev/qhr-scroll-index';
</script>
获取滚动模块的下标
import MyUtil from 'qhr-scroll-index'
const myUtil = new MyUtil();
myUtil.getIndex({
ids: ['a', 'aa', 'aaa', 'aaaa', 'aaaaa'],
option: this.observerOpt,
callBack: this.getCurrentCB
})