1)scroll事件触发取得scrollTop总是滚动前的位置,不是应该返回滚动后的位置吗?并且scroll会重复触发
2)google ,火狐浏览器 点击上或下滚动箭头后,鼠标再次经过时,也会触发scroll事件,是什么原因造成的? ie浏览器没有这个问题
This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
不要用alert,换成console.log看看呢
也许是因为alert中断了执行呢
把alert换成console.log就好