<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sakuragaoka</author_name>
  <author_url>https://blog.hatena.ne.jp/sakuragaoka/</author_url>
  <blog_title>桜ヶ丘日記</blog_title>
  <blog_url>https://sakuragaoka.hatenadiary.jp/</blog_url>
  <categories>
    <anon>web</anon>
    <anon>javascript</anon>
    <anon>tips</anon>
  </categories>
  <description>こんな感じで出来ます。 引数の数が可変に出来る点も便利。 /* * 引数1: 表示メッセージ(デフォルト空文字) * 引数2: しょぼーんフラグ(デフォルトtrue) */ var msg = function() { var txt = (arguments.length &gt; 0) ? arguments[0] : ''; var shobon = (arguments.length &gt; 1) ? arguments[1] : true; if (txt === '') { alert('な、何か言ってよね！'); } else { if(shobon) { alert(txt + '(´・…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsakuragaoka.hatenadiary.jp%2Fentry%2F20100408%2Fp1&quot; title=&quot;JavaScriptのfunctionの引数にデフォルト値を設定する - 桜ヶ丘日記&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>http://cdn-ak.f.st-hatena.com/images/fotolife/s/sakuragaoka/20100408/20100408132327.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-04-08 00:00:00</published>
  <title>JavaScriptのfunctionの引数にデフォルト値を設定する</title>
  <type>rich</type>
  <url>https://sakuragaoka.hatenadiary.jp/entry/20100408/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
