Properties or methods "data" is not defined in the examples, but presented during reference; error cause

First look at the reported error

[Vue warn]: Property or method “value” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
Here Insert Picture Description

**

The reason being given

**
is quoted error of a property or method "value" is not defined on the instance, but during the presentation referenced. By initializing the properties to ensure that the property is reactive, either in the option data, or for class-based component.
Variable data is to be defined not on a reference example,
as the FIG value1, value2: ""
Here Insert Picture Description

the solution

The solution is simple - you can define variables such
Here Insert Picture Description

Published 22 original articles · won praise 25 · views 3137

Guess you like

Origin blog.csdn.net/lys20000913/article/details/101164750