ios上input的focus()、autofocus无效

mounted钩子函数增加focus

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

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

  

猜你喜欢

转载自www.cnblogs.com/kelly07/p/10813514.html