<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mask0702</author_name>
  <author_url>https://blog.hatena.ne.jp/mask0702/</author_url>
  <blog_title>くわこのpermission denied.</blog_title>
  <blog_url>https://mask.hatenadiary.com/</blog_url>
  <categories>
    <anon>javascript</anon>
    <anon>ES6</anon>
  </categories>
  <description>例えばselectボックスが変更された時点でその値を取って何かしたい場合 以下のように書くとエラーになります。 $(document).on(&quot;change&quot;, &quot;.hoge&quot;, (() =&gt; { // this が undefined console.log(this.value); } これはES6の新仕様ではthisが呼び出し元拘束されているため(?)です。上記を今までのイメージ通りどうささせるには $(document).on(&quot;change&quot;, &quot;.hoge&quot;, (event =&gt; { console.log(event.currentTarget.value); } のようにちゃん…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmask.hatenadiary.com%2Fentry%2F2017%2F04%2F10%2F175750&quot; title=&quot;ES6のアロー関数を使うとjqueryのon()でthisが効かない - くわこのpermission denied.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-04-10 17:57:50</published>
  <title>ES6のアロー関数を使うとjqueryのon()でthisが効かない</title>
  <type>rich</type>
  <url>https://mask.hatenadiary.com/entry/2017/04/10/175750</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
