ios上input的focus()、autofocus无效

mounted钩子函数增加focus

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

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

  

原文地址:https://www.cnblogs.com/kelly07/p/10813514.html