We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44aec96 commit 05f2bd2Copy full SHA for 05f2bd2
getPageHeight.js
@@ -0,0 +1,11 @@
1
+/**
2
+ * @description 获取页面高度
3
+ * @author 未知
4
+ */
5
+
6
+function getPageHeight(){
7
+ var g = document, a = g.body, f = g.documentElement, d = g.compatMode == "BackCompat"
8
+ ? a
9
+ : g.documentElement;
10
+ return Math.max(f.scrollHeight, a.scrollHeight, d.clientHeight);
11
+}
0 commit comments