vue
mounted() {
window.addEventListener("scroll", this.handleScroll, true);
},
handleScroll(node) {
let { scrollTop, clientHeight, scrollHeight } = node.target;
console.log(scrollTop + clientHeight,'==', scrollHeight);
},
vue
mounted() {
window.addEventListener("scroll", this.handleScroll, true);
},
handleScroll(node) {
let { scrollTop, clientHeight, scrollHeight } = node.target;
console.log(scrollTop + clientHeight,'==', scrollHeight);
},