this.$refs.xxx和document.getElementById(xxx)
<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')