Window innerWidth 和 innerHeight 属性

获取窗口的高度和宽度

var width = window.innerWidth
var height = window.innerHeight