输入框有两个方法:
focus():获得焦点。
blur():失去焦点。
操作方法:

mounted(){
 document.getElementById('text').focus()
}
Logo

前往低代码交流专区

更多推荐