【发布时间】:2011-09-09 11:39:21
【问题描述】:
当我看到这段代码时,我有点纳闷:
// Get the screen height and width
var maskHeight = $(document).height();
var maskWidth = $(window).width();
...
// Get the window height and width
var winH = $(window).height();
var winW = $(window).width();
$(document).height(); 和 $(window).height(); 有什么区别?
【问题讨论】:
标签: javascript jquery window screen document