JavaScript event flow?
The interaction between javascript and HTML is via < events >; < event > : an action performed by the user or the browser itself, such as: click, mouse move in and out, etc.Copy the code
JavaScript event flow
1. Event flow: describes the order in which time is received from the page; 2. Event flow includes three stages: (1) event capture stage; (2) in the target stage; (3) Event bubbling stage; 3. Event bubbling: IE's stream of events is called event bubbling, where an event starts with the receipt of the most specific element (the element triggered by the target) and then propagates up the hierarchy to the Window object. < Bottom up > 4. Event capture: that is, propagate from document down to the target element. Event capture is rarely used because it is not supported by earlier versions of IE. < top down >Copy the code