ios上input的focus()、autofocus无效

mounted钩子函数增加focus

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

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

  

posted @ 2019-05-05 15:59  web前端kelly  阅读(1813)  评论(0编辑  收藏  举报