uniapp开发避坑
Vue3版本获取dom <script setup> import { getCurrentInstance,onMounted } from 'vue' onMounted(()=>{ const instance = getCurrentInstance(); const query = uni.createSelectorQuery().in(inst
Vue3版本获取dom <script setup> import { getCurrentInstance,onMounted } from 'vue' onMounted(()=>{ const instance = getCurrentInstance(); const query = uni.createSelectorQuery().in(inst
关键词节点 node 事件 onclick ondblclick onmousemove onload getElementById() getElementsByName() getElementsByTagName() getElementsClassName() 元素 属性 childNodes firstChild lastChild children firstElementChild