The following code will first execute onclick and then execute event monitoring:
JK Test div1's native fireEvent runs onclick first and then listeners
The execution order of JQuery is exactly the opposite:
JK Test
< ;style>
div{border:1px solid balck;padding:5px;margin:2px;}
< ;div id="div2" onclick="alert(2);" >div2 JQuery, run listeners first, then onclick
I scanned the implementation of jq's trigger and didn't understand it. What is the purpose of inversion.