var winHeight = window.innerHeight ? window.innerHeight : $(window).height();
var scrollToBottomFlag = false;
    
$(window).scroll(function() {
    scrollToBottomFlag = ($(window).scrollTop() + winHeight > $(document).height() - 234);
    if (scrollToBottomFlag) {
        //滚动条离底部小于234 do something 
    }
})    

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2021-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
相关资源
相似解决方案