vue监听页面滚动事件
mounted() {
// 监听滚动事件,用handleScroll这个方法进行相应的处理
window.addEventListener("scroll", this.handleScroll);
},
methods: {
handleScroll(<
vue监听页面滚动事件
mounted() {
// 监听滚动事件,用handleScroll这个方法进行相应的处理
window.addEventListener("scroll", this.handleScroll);
},
methods: {
handleScroll(<