共计 166 个字符,预计需要花费 1 分钟才能阅读完成。
间接上代码
// 若为非自定义组件则能够省略:in();反之则必须应用
const query = wx.createSelectorQuery().in(this);
query.selectAll('.content').boundingClientRect(function (res) {console.log(res);
}).exec();
正文完
共计 166 个字符,预计需要花费 1 分钟才能阅读完成。
// 若为非自定义组件则能够省略:in();反之则必须应用
const query = wx.createSelectorQuery().in(this);
query.selectAll('.content').boundingClientRect(function (res) {console.log(res);
}).exec();