$(window).scroll(function() { //监听滚动条的滚动
console.log($(window).scrollTop()); //打印当前滚动条滚动了多少
})
$(window).scroll(function() { //监听滚动条的滚动
console.log($(window).scrollTop()); //打印当前滚动条滚动了多少
})
转载于:https://www.cnblogs.com/SunShineM/p/7606300.html