Cannot read property '__ob__' of undefined

Posted 奔跑的哈密瓜

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cannot read property '__ob__' of undefined相关的知识,希望对你有一定的参考价值。

写代码的时候遇到这个错误,看了好久才发现问题原因,特此记录一下:

 

 data需要写return{  },不写的话就会出现这个错误。

以上是关于Cannot read property '__ob__' of undefined的主要内容,如果未能解决你的问题,请参考以下文章

Uncaught TypeError: Cannot read property 'addEventListener'

Uncaught TypeError: Cannot read properties of undefined (reading 'getUserMedia')

axios报错: Cannot read property 'protocol' of undefined ....

解决报错Cannot read property 'forceUpdate' of undefined

VUE TypeError: Cannot read property 'validate' of undefined

Cannot read property 'map' of undefined