首页javascriptheightjQuery Style - 如何获取文档高度

jQuery Style - 如何获取文档高度

我们想知道如何获取文档高度。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.7.1.js'></script>
<script type='text/javascript'>
$(window).load(function(){
    console.log($(document).height());
});
</script>
</head>
<body>
</body>
</html>