前回FetchAPIを試してみたので、昨今のAjax? XHR?を色々ggって試してみました。(ホント簡単に jQuery $.ajax みんな大好きjQuery。お世話になった$.ajax!! 今もWordPressで"ほぅむぺぃじ"を作ったりするときには使うんじゃないでしょうか? Promiseに似たDeferredオブジェクトが使えるようになってから非同期処理が書きやすくなった記憶です。 $.ajax({ url: api_url, type: 'POST', dataType: 'json', data: { key: 'post_data' } }) .done(function(res, textStatus, jqXHR) { console.log(res); // 返されたデータ }) .fail(function(jqXHR, textStatus, err){ con