vue conditions render rendering + + List event handler

 

vue conditions rendering

v-if  v-else-if  v-else

 

Is behind the v-if true, is displayed; not displayed to false

 

 

result

 

 

 

Export

 

 

v-show display. When true, the display is not false

 

 

 

 

vue rendering list

 

 

 

 

 

 The indexed case

 

 

 

 

Recycling target

 

 

 

 

vue event handler

v-on instruction binding events, the abbreviation @

 

 

 

 The method defined in methods of binding events in

 

 

 

 

Event binding function arguments

 

 

 

 

Event Modifier

.stop stop event bubbling

 

 

 

Guess you like

Origin www.cnblogs.com/chenyingying0/p/12599308.html