方法一:
var windowHeight = wx.getSystemInfoSync().windowHeight
var windowWidth = wx.getSystemInfoSync().windowWidth
方法二:
.windowHeightWidthClass {
height: 100vh;
width: 100vw;
}
CSS3中的 `vh` 和 `vw` 是相对于屏幕大小的单位,即:
vh => view height
vw => view width