element.addEventListener(event, function, useCapture)
useCapture:
-
- true - The event handler is executed in the capturing phase
- false- Default. The event handler is executed in the bubbling phase
Test Demo:
The differences between capturing and bubbling
原文:http://www.cnblogs.com/kkcodin/p/5485617.html