<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‘)
2023-10-30 20:43:40
<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‘)