ios上input的focus()、autofocus無效

mounted鉤子函數增長focusjavascript

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

mounted () {
    this.$refs.tel.focus()
  }
相關文章
相關標籤/搜索