Bubbling vs Capture Order

 

https://www.cnblogs.com/alvinwei1024/p/4739344.html

 

First capture from document -> target

Then bubble up from target -> document

 

Register bubbling and capture listeners on the same element element, whoever registers first will execute first

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326117768&siteId=291194637