this.$refs.xxx和document.getElementById(xxx)
时间:2021-09-03 18:05:24
收藏:0
阅读:26
<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‘)

原文:https://www.cnblogs.com/xwqqq/p/15222287.html
评论(0)