• 2024-09-26useTemplateRef使用
    1、使用ref方式:<template><div><inputtype="text"ref="inputEl"/><button@click="setInputValue">给input赋值</button></div></template><scriptlang="ts"setup&g