<a-form-model id="ruleForm" ref="ruleForm" >
...
</a-form-model>
let form = this.$refs.ruleForm;
console.log(form);
form = document.getElementById('ruleForm');
console.log(form);
this.$refs.ruleForm
document.getElementById('ruleForm')
<a-form-model id="ruleForm" ref="ruleForm" >
...
</a-form-model>
let form = this.$refs.ruleForm;
console.log(form);
form = document.getElementById('ruleForm');
console.log(form);
this.$refs.ruleForm
document.getElementById('ruleForm')
上一篇:forEach
下一篇:Linux下的基础IO
也可以通过给组件 $data 对象赋值来重置来重置整个 $data。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M