screen.height, screen.availHeight, window.innerHeight

屏幕分辨率高度,屏幕内可用高度(桌面去掉任务栏,浏览器可用高度),浏览器内可用高度

$.getWinSize = function() {
    if (window.innerWidth != undefined) {
        return [window.innerWidth, window.innerHeight];
    } else {
        var body = document.body, de = document.documentElement;
        return [Math.max(de.clientWidth, body.clientWidth), Math.max(de.clientHeight, body.clientHeight)];
    }
};