Capturing and Bubbling using jQuery

后端 未结 4 1355
春和景丽
春和景丽 2020-12-13 13:48

I am new to jQuery and I‘m trying to understand the concept of capturing and bubbling.

I have read a lot of articles, but most of them described event propagation fo

4条回答
  •  孤街浪徒
    2020-12-13 14:46

    jQuery only uses event bubbling. If you want to add an event handler that uses the capturing model, you have to do it explicitly using addEventListener, with the third argument true as you show in the question.

提交回复
热议问题