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的值