首页 > 技术文章 > vue 点击按钮 input框架获取焦点的方法
smght 2018-11-23 09:40 原文
在按钮事件里加上这一段this.$nextTick(() =>{ this.$refs.input.focus()})