获取浏览器大小

1 var w=window.innerWidth
2 || document.documentElement.clientWidth
3 || document.body.clientWidth;
4 
5 var h=window.innerHeight
6 || document.documentElement.clientHeight
7 || document.body.clientHeight;
原文地址:https://www.cnblogs.com/A-Iverson/p/5551853.html