Why does jQuery event model does not support event Capture and just supports event bubbling

前端 未结 2 1630
北荒
北荒 2020-12-06 00:28

Why does jQuery event model does not support event Capture and just supports event bubbling?

2条回答
  •  醉话见心
    2020-12-06 01:15

    Because not all browsers support event capturing, especially IE. As jQuery is supposed to be cross-browser compatible, it cannot offer event capturing (it might be possible to simulate event capturing, but if it were easy, I'm sure they would have done it).

提交回复
热议问题