document.addEventListener("Event name", function, false);
Copy the code code as follows:
function a function(event){
//Method execution
}
The last parameter in addEventListener determines the response order of the event;
If it is true, the event execution sequence is addEventListener ---- label's onclick event ---- document.onclick
If false, the order of events is the onclick event of the label ---- document.onclick ---- addEventListener
Understood as a call entry point for other codes