wx.createSelectorQuery().selectAll('.class').boundingClientRect(function (res) {
console.log(res[0].height);
}).exec()
*切记类名需要加点
wx.createSelectorQuery().selectAll('.class').boundingClientRect(function (res) {
console.log(res[0].height);
}).exec()
*切记类名需要加点