Capturing and Bubbling using jQuery

后端 未结 4 1346
春和景丽
春和景丽 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:40

    The event is triggered in event bubbling on the element on to which the user has clicked,and unless we call .stopPropagation() on the event object the event is then triggered all the way up the DOM. Default is event bubbling set in Jquery in order to use Capture ypu need to set parameter as true in .addEventListner

提交回复
热议问题