var nScrollHight = 0; //滚动距离总长(注意不是滚动条的长度)  
    var nScrollTop = 0;   //滚动到的当前位置  
    var nDivHight = $(".scroll").height();
    $(".scroll").scroll(function () {
        nScrollHight = $(this)[0].scrollHeight;
        nScrollTop = $(this)[0].scrollTop;
        if (nScrollTop + nDivHight >= nScrollHight) {
            alert("以到底!")
        }
    });

 

相关文章:

  • 2021-12-10
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2021-10-27
  • 2021-08-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-12-10
  • 2021-09-10
相关资源
相似解决方案