<script>
$(window).scroll(function () {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
if (scrollTop + windowHeight == scrollHeight) {
alert('滑动到底部了')
}
});
</script>
HTML 滑动到页面底部触发事件
最新推荐文章于 2024-02-01 09:43:25 发布