Created
August 28, 2014 08:45
-
-
Save wangwen1220/2e9825b8557550e38e17 to your computer and use it in GitHub Desktop.
js:判断滚动条已经滚动到底部
This file contains 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("滚到底部"); | |
} |
1uokun
commented
Sep 1, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment