The differences between capturing and bubbling
生活随笔
收集整理的這篇文章主要介紹了
The differences between capturing and bubbling
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?
HTML DOM?addEventListener()?Method
?
the same question:?bubbling and capturing
?
Syntax
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:
https://jsfiddle.net/kkcodin/L3qo8ocp/
?
轉載于:https://www.cnblogs.com/kkcodin/p/5485617.html
總結
以上是生活随笔為你收集整理的The differences between capturing and bubbling的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: leetcode345——Reverse
- 下一篇: RabbitMQ 3.6 安装