createSelectorQuery
var query = wx.createSelectorQuery()
query.select(’.#the_id’).boundingClientRect()
query.exec(function(res) {
// #the-id节点的上边界坐标
console.log(res)
})
结果:竟然是null,不知道为什么,急急急

var query = wx.createSelectorQuery()
query.select(’.#the_id’).boundingClientRect()
query.exec(function(res) {
// #the-id节点的上边界坐标
console.log(res)
})
结果:竟然是null,不知道为什么,急急急