微信小程序获得高度
wx.getSystemInfo({ success: (res) => { wx.createSelectorQuery().select('#scrollbox').boundingClientRect((rect) => { this.setData({ height: res.windowHeight - rect.top }) }).exec() } })
wx.getSystemInfo({ success: (res) => { wx.createSelectorQuery().select('#scrollbox').boundingClientRect((rect) => { this.setData({ height: res.windowHeight - rect.top }) }).exec() } })