<td id="tdObj" on-click="onClick">
<input id="input"></input>
</td>
onClick : function(event)
{
console.log("event.target.id : " + event.target.id);
console.log("event.currentTarget.id : " + event.currentTarget.id);
}
-- td click시
event.target.id : tdObj
event.currentTarget.id : tdObj
-- input click시
event.target.id : input
event.currentTarget.id : tdObj
target : 실제 click 한 object
currentTarget : 실제 click event를 listen하는 object
currentTarget, target
|
2019.11.21 09:54:21
|
2020.02.04 00:01:26
|
377
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2020.10.18
2020.10.17
2020.05.31
2020.04.24
2019.11.29
2019.11.21
2019.11.07
2017.01.11
2015.09.24
2013.12.20
2011.08.11