微信小程序获取当前窗口的宽高 var w = wx.getSystemInfoSync().windowWidth;var h = wx.getSystemInfoSync().windowHeight;