📜  javascript 事件:目标与 currentTarget - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:13.152000             🧑  作者: Mango

代码示例1
target = element that triggered the event, it refers to the same element throughout the event life cycle.

currentTarget = element to which the event hanlder is attached, reference may change as the event propogates further.