02 2023 档案
摘要:1. 自定义指令(withDirectives 仅可在setup或render函数中使用)可以使用 withDirectives 将自定义指令应用于 VNode: const { h, resolveDirective, withDirectives } = Vue // ... // <div v
阅读全文
摘要:元素上属性字段 const el = document.getElementById('documentLabel') console.log(el.clientWidth) // 可见区域宽 console.log(el.clientHeight) // 可见区域高 console.log(el.
阅读全文