海mia婊婊想上岸

导航

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')

 

posted on 2021-09-03 11:18  海mia婊婊想上岸  阅读(246)  评论(0编辑  收藏  举报