摘要: <input type="text" ref="inputVal" @blur="test" > this.$refs.inputVal.focus();//获得焦点 this.$refs.inputVal.blur();//失去焦点即可以触发rules中blur校验事件 阅读全文
posted @ 2022-06-16 14:39 逝年的我们 阅读(997) 评论(0) 推荐(0) 编辑