// 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();有什么区别?和$(窗口).height();?