let that = this
setTimeout(() => {
let query = wx.createSelectorQuery();
query.selectAll('.scroll-view').boundingClientRect()
query.exec(function (res) {
for (var i = 0; i < res[0].length; i++) {
that.list[i].height = res[0][i].height + 'px'
that.height = res[0][0].height + 'px'
}
})
}, 2000)
uni-app 获取dom 多个相同类名
最新推荐文章于 2024-07-10 14:31:13 发布