当前位置: 首页 - 编程技术 - 文章正文

解决[Vue warn]: Error in v-on handler: “TypeError: Cannot read property ‘xxx‘ of undefined“

xiaoqihv

this.$refs.xxx.validate() 中的与ref="xxx"名字要相同,或者要定义这个ref 。 没有定义或者名称不一致都会出现上述错误。

文章地址:https://wenmayi.cn/post/615.html