var that=this;
const query = uni.createSelectorQuery().in(that);
query.select('元素').boundingClientRect(data => {
console.log(data)
}).exec();
09-30
1264
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-03
5310
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-07
621
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)