由于vue3中没有this,所以使用uni.createSelectorQuery().in(this)时,会报错
 
 使用 getCurrentInstance 获取组件实例
 使用 uni.createSelectorQuery() 批量查询时,结果是按照查询的顺序返回的
- 使用示例
import { getCurrentInstance } from 'vue'
const appInstance = getCurrentInstance().proxy
onMounted(() => {
	let query = uni.createSelectorQuery().in(appInstance)
	query
		.select('.scroll_view')
		.boundingClientRect((rect) => {
			top.value = rect.top || 0
		})
		.exec()
})



















