invalid listening in VUE
not getting the scrollTop is not a problem of removing listeners, but an error in your scrolling function.
window.removeEventListener('resize',() => this.funScroll())
window.removeEventListener(type,fn,true)
the third parameter is missing
Previous: On the problem of calculating array corresponding subscript Array
Next: React binds events through external arrow functions, how to pass parameters?