<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>namaza</author_name>
  <author_url>https://blog.hatena.ne.jp/namaza/</author_url>
  <blog_title>雑記</blog_title>
  <blog_url>https://ytrewq.hatenablog.com/</blog_url>
  <categories>
    <anon>Node.js</anon>
  </categories>
  <description>$(function(){}) で囲むと、全てのDOM要素が読み込まれた後に実行されるそうです。 Node.js + Express + socket.io で、入力に応じて画像を返す.md · GitHub 似ているものに即時実行関数があります。(function(){})など、カッコで全体を囲んでいるものです。javascriptでは複数のモジュールを読み込んだときに名前空間が共有されますが、即時実行関数を適用すればスコープになるので変数名がぶつからないという利点があります。また、グローバル変数とならないのでメモリがすぐに解放されます。なので初期化に使われます。しかし、ES6でletやco…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytrewq.hatenablog.com%2Fentry%2F2017%2F07%2F30%2F120919&quot; title=&quot;$(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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-07-30 12:09:19</published>
  <title>$(function(){})で囲む理由</title>
  <type>rich</type>
  <url>https://ytrewq.hatenablog.com/entry/2017/07/30/120919</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
