Window innerWidth 和 innerHeight 屬性

獲取視窗的高度和寬度

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