如何用js监听滚动条滚动事件<script>window.onscroll=function(){变量t就是滚动条滚动时,到顶部的距离var t =document.documentElement.scrollTop||document.b2023-04-15JavaScript230