<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuheiomori0718</author_name>
  <author_url>https://blog.hatena.ne.jp/yuheiomori0718/</author_url>
  <blog_title>メモ置き場</blog_title>
  <blog_url>https://y0m0r.hateblo.jp/</blog_url>
  <categories>
    <anon>js</anon>
  </categories>
  <description>調べてたのメモしておく underscore.jsのdebounceを使うと、関数の実行を遅らせることができる以下の例だと、a.some_classをクリックした500ミリ秒後に関数が実行される。 連続してクリックすると、最後にクリックした時間の500ミリ秒後に1度だけ実行される。 $('a.some_class').on('click', _.debounce(function(e){ console.log('clicked!'); }, 500)); 3つめの引数(immediate)にtrueを渡すと関数はすぐに実行される。 500ミリ秒を開けずに連続してクリックし続けている場合は、2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130629%2F1372516846&quot; title=&quot;underscore.jsのdebounce - メモ置き場&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>2013-06-29 23:40:46</published>
  <title>underscore.jsのdebounce</title>
  <type>rich</type>
  <url>https://y0m0r.hateblo.jp/entry/20130629/1372516846</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
