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() } })
转载于:https://www.cnblogs.com/wanf/p/11232859.html