美文网首页
vuejs中form表单验证

vuejs中form表单验证

作者: 08f1b6c52d2a | 来源:发表于2018-01-26 19:41 被阅读0次

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