Custom component life cycle res.height sometimes reports to null
ready: function () {
var that = this
var query = wx.createSelectorQuery().in(this)
query.select(".question").boundingClientRect(function (res) {
that.setData({
questionHeight: res.height
})
}).exec()
// console.log(that.data.questionHeight)
}