Understanding of vue's componentization

Componentization is equivalent to the tool class in java. It is encapsulated and called directly when used.
Components are not bound to page elements, so
the html template of the el component is not written in the component. We have to use template to write .
The data in the component must be a function, not an object.
When the attribute name is the same as the variable name, we can abbreviate it as one.

Insert picture description here
Insert picture description hereInsert picture description here

Guess you like

Origin blog.csdn.net/liulang68/article/details/113370795