为了获得对模板内元素或组件实例的引用,我们可以像往常一样声明ref 并从setup() 返回:. <template> <div ref="root">This is a root element</div> ...
確定! 回上一頁