When multiple observers are present, use the bubbling phase if you want closer observers to fire first.
当存在多个观测者时,如果希望首先触发最近的观测者则使用冒泡阶段。
If you need to set up an event observer, should you use the capture or bubbling phase? Here are a few guidelines.
如果需要设置事件观测者,应该使用捕获阶段还是冒泡阶段呢?
If the event reaches the target element without being handled and the event type allows it, the bubbling phase begins.
如果事件抵达目标元素而没有被处理并且该事件类型允许,则进入冒泡阶段。
应用推荐