サクサク読めて、アプリ限定の機能も多数!
event.targetにはイベントが起きたelementが入っている。監視したいelementかチェックして対応するhandlerを呼べば、event delegation。
ledsun のブックマーク 2015/02/21 16:48
Event Delegation[javascript]event.targetにはイベントが起きたelementが入っている。監視したいelementかチェックして対応するhandlerを呼べば、event delegation。2015/02/21 16:48
このブックマークにはスターがありません。 最初のスターをつけてみよう!
davidwalsh.name2011/12/22
One of the hot methodologies in the JavaScript world is event delegation, and for good reason. Event delegation allows you to avoid adding event listeners to specific nodes; instead, the event li...
11 人がブックマーク・2 件のコメント
\ コメントが サクサク読める アプリです /
event.targetにはイベントが起きたelementが入っている。監視したいelementかチェックして対応するhandlerを呼べば、event delegation。
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Event Delegation
One of the hot methodologies in the JavaScript world is event delegation, and for good reason. Event delegation allows you to avoid adding event listeners to specific nodes; instead, the event li...
11 人がブックマーク・2 件のコメント
\ コメントが サクサク読める アプリです /