Vue in the use of some of the components point to remember

1. the wording because of the rules of HTML tbody in only tr, td tag while parsing error

The correct wording is as follows:

Similarly there can only select the next option, ul where only li, to use components can also use a similar method

 

2. The subassembly of data need to be bound if necessary to return the data as a function of

We will complain:

Correct wording:

3. ref can be obtained in the following examples DOM element VUE

Component is passed through the parent emit component data, the parent component obtained by the following value $ refs subassembly, the following specific examples:

 

Guess you like

Origin www.cnblogs.com/rmty/p/10991490.html