完美解决微信小程序scroll-view高度自适应机型宽度的问题
var obj = wx.createSelectorQuery();
obj.selectAll('.head,.bottom').boundingClientRect(function(rect) {
let height = app.globalData.windowHeight - rect[0].height - rect[1].height + "px"
that.setData({
height: height
})
})
obj.exec();