<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>(function() { })(); こんなのを即時関数って呼びます。よく書くと思います。で、gruntなどでライブラリなどを結合して、min化したりするのですが この即時関数の前に;が無いと死んでしまうトラップがあったりするので注意が必要です。特に自分で書いていないライブラリと結合した時とか。 いろんな即時関数の書き方 // #1. /* たぶん一番有名？ */ (function() { // 処理 })(); // #2. (function() { // 処理 }()); // #3. +function() { // 処理 }(); // #4. -function() { // …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2014%2F10%2F05%2F134757&quot; title=&quot;javascript 即時関数のトラップ - かもメモ&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>https://images-fe.ssl-images-amazon.com/images/I/51jMq3%2BDklL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-10-05 13:47:57</published>
  <title>javascript 即時関数のトラップ</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2014/10/05/134757</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
