16-Vue父子组件通信出现的问题

Cannot find element: #myA

原因:把id=“MyA”加在了template下面的div里面了,应该加在template标签上。

Property or method "name" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.

原因:data()在return时定义的不是name

Uncaught TypeError: (intermediate value) is not a constructor

原因:多加了个其他变量符号

Property or method "name" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.

原因:没有在data()中return name的值

posted @ 2019-07-02 21:37  池鱼奥耶  阅读(425)  评论(0编辑  收藏  举报