JavaScript浏览器对象模型
window尺寸:1
2var w = window.innerWidth || document.documentElement.cilentWidth || document.body.clientWidth;
var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
其他window方法:1
2
3
4window.open();
window.close();
window.moveTo();
window.resizeTo();