mounted钩子函数增加focus
<input ref="tel" type="tel">
mounted () {
this.$refs.tel.focus()
}
mounted钩子函数增加focus
<input ref="tel" type="tel">
mounted () {
this.$refs.tel.focus()
}
转载于:https://www.cnblogs.com/kelly07/p/10813514.html