<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakahisateru</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakahisateru/</author_url>
  <blog_title>なんたらノート第三期ベータ</blog_title>
  <blog_url>https://tanakahisateru.hatenablog.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>jQueryで一回だけクリックできる(または二回目以降別のハンドラに切り替わる)ボタンを作りたい場合、もっとも簡単な方法はこんな感じじゃないかなという話です。まずは、ありがちな方法。 var oneshot = function(){ alert('oneshot'); $('button').unbind('click', oneshot); return false; }; $('button').click(oneshot); 関数をいったん定義しないといけないので、ひと手間食いますね。jQueryのサンプルのように、関数を直接引数のところに書けたらな。じゃあ、こう書けばどうでしょう。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakahisateru.hatenablog.jp%2Fentry%2F20101201%2F1291207173&quot; title=&quot;jQueryで一回だけイベント - なんたらノート第三期ベータ&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>2010-12-01 21:39:33</published>
  <title>jQueryで一回だけイベント</title>
  <type>rich</type>
  <url>https://tanakahisateru.hatenablog.jp/entry/20101201/1291207173</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
