首页 > 其他 > 详细

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

时间:2021-09-03 18:05:24      阅读:37      评论:0      收藏:0      [点我收藏+]
<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‘)

技术分享图片

 

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

原文:https://www.cnblogs.com/xwqqq/p/15222287.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!