1、ref="errorAddForm"style="margin-left:30px;margin-top:10px;">
2、清除form表单中的数据,需要在每个要想被清除内容的小组件上注意写prop=”…”
3、data里面声明对象时,一定要将prop这些属性的加上
4、this.$refs[formName].resetFields();
1、ref="errorAddForm"style="margin-left:30px;margin-top:10px;">
2、清除form表单中的数据,需要在每个要想被清除内容的小组件上注意写prop=”…”
3、data里面声明对象时,一定要将prop这些属性的加上
4、this.$refs[formName].resetFields();
本文标题:vuejs中form表单验证
本文链接:https://www.haomeiwen.com/subject/qspsoxtx.html
网友评论