import {ref, getCurrentInstance } from 'vue'
let testClick = () => {
const instance = getCurrentInstance()
let query = uni.createSelectorQuery().in(instance)
query.select('#test').boundingClientRect()
query.exec(res => {
console.log(res)
})
}
1***@qq.com (作者)
最后没有在组件里面写
2024-05-21 16:56