位置:- 正文
推荐整理分享Cannot read properties of undefined (reading ‘validate‘)“(cannot read properties null),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:cannot read propertiea of null,cannotreadpropertiesofnull翻译,cannot read propertiea of null,cannot read properties of,Cannot read properties of null,Cannot read properties of null,cannot read properties,cannotreadpropertiesofnull翻译,内容如对您有帮助,希望把文章链接给更多的朋友!
不排除this.$refs[value].validate()=>(),有时候不会报错
2、示范代码<template>
<div>
<el-form ref="value" :model="getAppForm" label-width="120px" style="text-align:left" :rules="rules"
</el-form>1
</div>
</template>

<script>
data(){},
methids:{
makeSure() {
this.$refs.value.validate((valid)=>{
if(valid){
})
}
}
</script>