Jquery如果$(窗口)向下滚动功能 [英] Jquery if $(window) scroll down function
本文介绍了Jquery如果$(窗口)向下滚动功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好我需要 $(窗口)
向下滚动 100%
提醒某事
如何我可以这样做吗?
hello I need when $(window)
is scrolled down with 100%
alert something
how can I do it?
推荐答案
尝试:
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height()) {
alert("END!");
}
});
这篇关于Jquery如果$(窗口)向下滚动功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文