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

this.$refs.xxx和document.getElementById(xxx)

 

 

document.getElementById(‘ruleForm‘)

this.$refs.xxx和document.getElementById(xxx)

 

this.$refs.xxx和document.getElementById(xxx)

上一篇:公链之王以太坊通缩


下一篇:系统集成项目管理工程师10大管理47个过程域输入输出工具(项目进度管理)