📜  获取文档高度 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:37.331000             🧑  作者: Mango

代码示例2
let body = document.body, html = document.documentElement, 
    height = Math.max( body.scrollHeight, body.offsetHeight,
                      html.clientHeight, html.scrollHeight, html.offsetHeight );