网站首页
编程语言
数据库
系统相关
其他分享
编程问答
inputEl1
2024-09-26
useTemplateRef使用
1、使用ref方式:<template><div><inputtype="text"ref="inputEl"/><button@click="setInputValue">给input赋值</button></div></template><scriptlang="ts"setup&g