vue监听滚动事件失效window.addEventListener('scroll', this.handleScroll)

 

 

在 window.addEventListener('scroll', this.handleScroll,true)加了个true 就会成功。

posted @ 2022-08-17 15:45  雪莉06  阅读(682)  评论(0编辑  收藏  举报