移动端滑动加载

来源:互联网 发布:sql sever2017 编辑:程序博客网 时间:2024/05/21 17:12
const wrapper = this.refs.wrapper;        function callback() {            const top = wrapper.getBoundingClientRect().top            const windowHeight = window.screen.height            if (top && top < windowHeight) {                // 证明 wrapper 已经被滚动到暴露在页面可视范围之内了                loadMoreFn()            }        }
原创粉丝点击