开发者

How do I check whether the scrollbar is at the beginning or end?

how do I check whether the scrollbar is at the beginning or end with jquery?开发者_JS百科 For the beginning part i would check if $(window).scrollTop <= 0, but what should i use for the end?

Thank you


Use this:

($(window).scrollTop() + $(window).height() >= $(document).height())
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜