<?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>jQuery</anon>
    <anon>JavaScript</anon>
    <anon>Ajax</anon>
  </categories>
  <description>$.when()で複数の非同期処理を行って、.done()で結果を受け取ってその後の処理をするのですが、特に非同期処理がAjaxの時、$.when()の.done()でAjaxで取得できた値を受け取って加工するのではなく、Ajax側で取得したデータを加工して$.when()のdone()に渡したい時のやりかたのメモ。 例 var foo = $.ajax({ url : &quot;foo_API_URL&quot;, // {&quot;text&quot;: &quot;foo&quot;} が返ってくるとする type : &quot;GET&quot;, dataType : &quot;json&quot;, data: data }).done(function(res) { v…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2015%2F09%2F18%2F083000&quot; title=&quot;jQuery.whenのdone()にAjaxで取得したデータを加工して渡したい - かもメモ&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://ecx.images-amazon.com/images/I/51l0nocFbqL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-09-18 08:30:00</published>
  <title>jQuery.whenのdone()にAjaxで取得したデータを加工して渡したい</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2015/09/18/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
