We could use the ref attribute for that: <input ref="input" />. and then: methods: { focusInput: function () { this.$refs.input.focus() } }.
確定! 回上一頁