mounted钩子函数增加focus

<input ref="tel" type="tel">

mounted () {
    this.$refs.tel.focus()
  }

  

相关文章: