首先
$(document)这个是获取文档对象
$(window)这个是获取窗口对象,也就是浏览器客户区
给大家举个例子就非常直接明了了
$(document).height() $(window).height()注意,让网页有滚动条
然后输出一下这两个值得大小,你就知道什么区别了
以上所述就是本文的全部内容了,希望大家能够喜欢。
首先
$(document)这个是获取文档对象
$(window)这个是获取窗口对象,也就是浏览器客户区
给大家举个例子就非常直接明了了
$(document).height() $(window).height()注意,让网页有滚动条
JavaScript Window浏览器对象模型原理解析
document 和 document.all 分别什么时候用
document.all还是document.getElementsByName?
document对象execCommand的command参数介绍
document.getElementById的一些细节
document 和 document.all 分别什么时候用
动态加载js文件 document.createElement
window.open的功能全解析
document.open() 与 document.write()
document.styleSheets[0].disabled
document.selection.createRange方法与实例
在window.setTimeout方法中传送对象
脚本中出现 window.open() access is denied - 拒绝访问 情况一则及分析
Javascript miscellanea -display data real time, using window.status
window.showModalDialog使用手册
window.open()弹出居中的窗口
浅谈window对象的scrollBy()方法
javascript实现网页子页面遍历回调的方法(涉及 window.frames、递归函数、函数上下文)
函数window.open实现关闭所有的子窗口