for example, set one event in parent element An and another event in child element B.
when clicking on child elements, I want the event of A to trigger first (that is, to execute according to the capture phase)
but I have seen the source code, and the addEventlistener of the jq binding event can only be bubbled.
this puzzles me. Doesn"t jq give a solution?
this situation should have been encountered by someone. How is it solved?
$(box).on("click",function(e){console.log(0)}); //
$(b1).on("click",function(e){console.log(1)});
$(box).on("click.blur",".b1",function(e){console.log(2)});