2023/6/7

vue3 ts 用$refs动态获取 dom 对象

import { getCurrentInstance, reactive, ref } from "vue" const { proxy } = getCurrentInstance() as any proxy.$refs.inpueOne.focus();

  • typescript
  • 2023/6/7
  • 596