vue instructions: Event qualifier

Can be modified to add modifier events after the event
 
 
1 : bubbling and capture:
        
        Bubble: 
       button is clicked: div trigger event after the first trigger button event 
        capture: 
                and bubbling trigger the reverse order of
 2 : Use .stop prevent bubbling modifier: When:
      
3 : Default behavior: 
        not really understand, roughly understood as follows: the label contains certain default event. For example: <a> default behavior label is: jump.
4 : Use .prevent prevent the default behavior.
5 : Using the capture mechanism when .capture event listener.
        
6 : only their own event triggers before the execution, the situation bubbling or capture is not performed
        
7 : .once performed only once. That is all modifications of this event is executed only once. The second would be in accordance with the label of the province. 
        The following case, .prevent remove the default behavior. Once you have .once only the first default behavior is removed. The second started in accordance with <a> to perform label.
        
8 : .self only prevent bubbling of the current element, bubbling other elements continue. 
       .stop can all stop.

 

Guess you like

Origin www.cnblogs.com/Xmingzi/p/12601516.html