wx.createSelectorQuery().selectAll(`.${this.data.selector}`).boundingClientRect().exec(function(res){ that.setData({ 'systemInfo.height': res[0][0].height + res[0][0].top }) }); res传出的array为0
wx.createSelectorQuery().selectAll(
.${this.data.selector}).boundingClientRect().exec(function(res){that.setData({
'systemInfo.height': res[0][0].height + res[0][0].top
})
});
res传出的array为0