<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>apikey</author_name>
  <author_url>https://blog.hatena.ne.jp/apikey/</author_url>
  <blog_title>apikey</blog_title>
  <blog_url>https://apikey.hatenadiary.org/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>メモ</anon>
  </categories>
  <description>メモ150ミリ秒に一度、カウントを行い、カウント回数をアラートに表示する場合 var count = 0; function myTest() { myTimer = setTimeout(&quot;myTest()&quot;,150); // 繰り返したい処理（自分を呼び出す）、ミリ秒 alert(count); count++; if (count &gt; 10) { clearTimeout(myTimer); // clearTimeoutでタイマーを解除 } } setTimeout()を変数に入れることでclearTimeoutで呼び出せるようにする。 setTimeout()に自分自身の関数を入れる…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fapikey.hatenadiary.org%2Fentry%2F20090211%2F1234356365&quot; title=&quot;タイマーで自分自身の関数を呼び出す - apikey&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>2009-02-11 21:46:05</published>
  <title>タイマーで自分自身の関数を呼び出す</title>
  <type>rich</type>
  <url>https://apikey.hatenadiary.org/entry/20090211/1234356365</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
