hlhs
$(window).scroll(function() {
            var scrollTop = $(this).scrollTop();
            var scrollHeight = $(document).height();
            var windowHeight = $(this).height();

            if(scrollTop == 0){
                alert(\'顶部\');
            }
            if(scrollTop + windowHeight == scrollHeight  ){
                alert(\'下拉到底了\');
            }
        })

分类:

技术点:

相关文章:

  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-29
  • 2021-12-31
  • 2021-12-31
  • 2022-12-23
  • 2021-12-23
  • 2021-12-23
相关资源
相似解决方案