文本框.focus(); this.$nextTick(()=>{//延时函数,延时到dom元素重新渲染完毕之后之后下面的代码 this.$refs.protref.focus(); //protref为元素id })