Created
February 1, 2018 10:29
-
-
Save liuwenzhuang/f774d3944a2df376be91381a0dc1d7ce to your computer and use it in GitHub Desktop.
获取文档body滚动高度
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
const scrollTop = document.body.scrollTop || document.documentElement.scrollTop; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment