Created
August 28, 2014 08:45
-
-
Save wangwen1220/2e9825b8557550e38e17 to your computer and use it in GitHub Desktop.
js:判断滚动条已经滚动到底部
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 判断滚动条已经滚动到底部 | |
if (Math.abs(document.body.clientHeight - document.documentElement.clientHeight) <= (document.documentElement.scrollTop || document.body.scrollTop)) { | |
alert("滚到底部"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.