[jQuery] jQuery のイベントメソッドで提供されないイベントを処理するには on() を使う

JavaScript/jQuery が対応している EventHandlers へのリンクも含めておく。

[markdown]
> * [jQuery: イベントに応じて処理を実行するには?(イベントメソッド) – Build Insider](http://www.buildinsider.net/web/jqueryref/015)

イベントリスナーの配下では、`$(this)` でイベントの発生元にアクセスできる。

> * [jQuery: イベントメソッドで提供されないイベントを処理するには?(on) – Build Insider](http://www.buildinsider.net/web/jqueryref/016)

jQuery が標準で対応していない(=イベントメソッドとして提供されない)イベントにアクセスするには、`on` メソッドを利用しなければならない。

See the Pen jQuery Events (error) by DriftwoodJP (@DriftwoodJP) on CodePen.

jQuery が対応しているイベント。

> * [Events | jQuery API Documentation](http://api.jquery.com/category/events/)

JavaScript にあるイベント。

※ [Dash](https://itunes.apple.com/us/app/dash-3-api-docs-snippets/id449589707?mt=12) で検索した方が探しやすい。

> * [GlobalEventHandlers – Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers)
> * [WindowEventHandlers – Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers)

JavaScript逆引きレシピ jQuery対応
山田 祥寛
翔泳社
売り上げランキング: 227,875

## 補遺

> * [.on()と.off()を使いこなす 1 | CodeGrid](https://app.codegrid.net/entry/practical-jquery-1)
> * [.on() | jQuery API Documentation](http://api.jquery.com/on/)

event.error() は deprecated

> * [.error() | jQuery API Documentation](http://api.jquery.com/error/)
[/markdown]