📜  jquery 事件源 - Javascript 代码示例

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

代码示例1
//target is the element that triggered the event 
let source1 = event.target;
//currentTarget is the element that the event listener is attached to.
let source2 = event.currentTarget;