<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>snaka72</author_name>
  <author_url>https://blog.hatena.ne.jp/snaka72/</author_url>
  <blog_title>今日もスミマセン。</blog_title>
  <blog_url>https://snaka72.hatenadiary.org/</blog_url>
  <categories>
    <anon>code</anon>
    <anon>javascript</anon>
  </categories>
  <description>メモ的エントリ。 GETしたりPOSTしたりする場面でしょっちゅうURIエンコードされたクエリ文字列の生成が必要だったりすので関数書いてみた。配列内包表記を使ったら１行で書けた。firefox用でしか動作確認してない。IEでは動かないはず。 function makeParam(a) [(enc=encodeURIComponent)(i)+&quot;=&quot;+enc(a[i]) for (i in a)].join('&amp;') 使い方: makeParam({ hoge: &quot;fuga&quot;, moge: &quot;muga&quot; }); // =&gt; hoge=fuga&amp;moge=muga 配列に対応してみる 配列(同じパ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsnaka72.hatenadiary.org%2Fentry%2F20090220%2F1235141033&quot; title=&quot;URIエンコードされたクエリ文字列を生成する1行の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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-02-20 23:43:53</published>
  <title>URIエンコードされたクエリ文字列を生成する1行のjavascript関数</title>
  <type>rich</type>
  <url>https://snaka72.hatenadiary.org/entry/20090220/1235141033</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
