{"id":2141,"date":"2023-12-16T13:50:24","date_gmt":"2023-12-16T04:50:24","guid":{"rendered":"https:\/\/www.dogrow.net\/hp\/?p=2141"},"modified":"2023-12-17T16:50:02","modified_gmt":"2023-12-17T07:50:02","slug":"blog142","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/hp\/blog142\/","title":{"rendered":"(142) JavaScript\u3067ISBN\u304b\u3089\u66f8\u7c4d\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3002"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u66f8\u7c4d\u306e\u88cf\u8868\u7d19\u306b\u30d7\u30ea\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b <span class=\"my_fc_blueBBig\">ISBN\u30b3\u30fc\u30c9<\/span> \u306e\u5024\u304b\u3089\u66f8\u7c4d\u60c5\u5831\u3092\u53d6\u5f97\u3057\u305f\u3044\u3002<br \/>\n\u3053\u306e\u305f\u3081\u306e Web API\u304c\u3044\u308d\u3044\u308d\u306a\u30b5\u30a4\u30c8\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>\u2193 ISBN\u30b3\u30fc\u30c9 \u2193<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/hp\/wp-content\/uploads\/2023\/12\/Image4.jpg\" alt=\"\" class=\"my_add_bs1\" \/><\/p>\n<p>\u4eca\u56de\u306f <a href=\"https:\/\/developers.google.com\/books?hl=ja\" target=\"_blank\" rel=\"noopener\">Google Book API<\/a> \u3092\u4f7f\u3063\u3066 <span class=\"my_fc_blueBBig\">ISBN to \u66f8\u7c4d\u60c5\u5831<\/span> \u306e\u5909\u63db\u51e6\u7406\u3092\u5b9f\u73fe\u3057\u3066\u307f\u308b\u3002<\/p>\n<h1 class=\"my_h\">2. \u3084\u3063\u3066\u307f\u308b<\/h1>\n<p>\u5b9f\u88c5\u6e08\u307f\u306e\u30da\u30fc\u30b8\u306f\u3053\u3061\u3089\u3002<br \/>\n<a href=\"https:\/\/www.dogrow.net\/hp\/sample\/00142\/01\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.dogrow.net\/hp\/sample\/00142\/01\/<\/a><\/p>\n<h3 class=\"my_h\">(1) index.html<\/h3>\n<p>\u305f\u3063\u305f\u3053\u308c\u3060\u3051\u306e\u753b\u9762\u3060\u3002<br \/>\n\u30fbISBN\u30b3\u30fc\u30c9\u306e\u5165\u529b\u6b04<br \/>\n\u30fbISBN to \u66f8\u7c4d\u60c5\u5831\u306e\u5909\u63db\u5b9f\u884c\u30dc\u30bf\u30f3<br \/>\n\u30fb\u53d6\u5f97\u7d50\u679c\u306e\u8868\u793a\u6b04\uff08\u8d64\u67a0\u5185\uff09<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/hp\/wp-content\/uploads\/2023\/12\/Image3.jpg\" alt=\"\" class=\"my_add_bs1\" \/><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n  &lt;meta charset=&quot;UTF-8&quot;&gt;\r\n  &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; \/&gt;\r\n  &lt;script src=&quot;script.js&quot;&gt;&lt;\/script&gt;\r\n  &lt;title&gt;Blog No.142-01 Google Books API&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;isbn&quot; value=&quot;9784297126858&quot; \/&gt;\r\n&lt;input id=&quot;btnStartQuery&quot;  type=&quot;button&quot; value=&quot;Execute ISBN Query&quot;  \/&gt;\r\n&lt;div id=&quot;result&quot;&gt;&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<h3 class=\"my_h\">(2) style.css<\/h3>\n<p>\u88c5\u98fe\u306f\u7279\u306b\u306a\u3057\u3002<br \/>\n\u53d6\u5f97\u3057\u305f\u66f8\u7c4d\u60c5\u5831\u306e\u8868\u793a\u6b04\u3092\u8d64\u67a0\u3067\u56f2\u3063\u305f\u3060\u3051\u3002<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n#result{\r\n  border:2px solid #F00;\r\n}\r\n<\/pre>\n<h3 class=\"my_h\">(3) script.js<\/h3>\n<p><span class=\"my_fc_greenB\">1\u884c\u76ee<\/span>\uff1aDOM\u751f\u6210\u901a\u77e5\u306b\u3066\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u3002<br \/>\n<span class=\"my_fc_greenB\">8\u884c\u76ee<\/span>\uff1a\u30dc\u30bf\u30f3\u62bc\u4e0b\u6642\u306b\u8d77\u52d5\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u767b\u9332\u3059\u308b\u3002<br \/>\n<span class=\"my_fc_greenB\">12\u884c\u76ee<\/span>\uff1afetch()\u3092\u4f7f\u3063\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u767a\u884c\u3059\u308b\u3002<br \/>\n<span class=\"my_fc_greenB\">13\u884c\u76ee<\/span>\uff1a\u3010\u30c1\u30a7\u30fc\u30f3#1\u3011\u53d7\u4fe1\u30c7\u30fc\u30bf\u5f15\u6570\u3068\u3057\u3066\u53d7\u3051\u3001\u3053\u308c\u3092 JSON\u3068\u3057\u3066\u69cb\u6587\u89e3\u6790\u3057\u3001\u305d\u306e\u7d50\u679c\u3092 JavaScript\u30aa\u30d6\u30b8\u30a7\u30af\u30c8(A)\u306b\u5909\u63db\u3059\u308b\u3002<br \/>\n<span class=\"my_fc_greenB\">14\u884c\u76ee<\/span>\uff1a\u3010\u30c1\u30a7\u30fc\u30f3#2\u3011(A)\u3092\u5f15\u6570\u3068\u3057\u3066\u53d7\u3051\u3001\u3053\u308c\u3092\u95a2\u6570\u5185(\u30a2\u30ed\u30fc\u95a2\u6570\u3067\u8a18\u8ff0)\u3067\u51e6\u7406\u3059\u308b\u3002<br \/>\n<span class=\"my_fc_greenB\">33\u884c\u76ee<\/span>\uff1a\u30c1\u30a7\u30fc\u30f3#1, #2\u3067\u767a\u751f\u3057\u305f\u4f8b\u5916\u3092\u30ad\u30e3\u30c3\u30c1\u3059\u308b\u3002<\/p>\n<pre class=\"brush: jscript; highlight: [1,8,12,13,14,33]; title: ; notranslate\" title=\"\">\r\ndocument.addEventListener(&quot;DOMContentLoaded&quot;, function() {\r\n  \/\/ \u4f7f\u7528\u3059\u308b DOM Object\u3092\u4e8b\u524d\u53d6\u5f97\u3057\u3066\u304a\u304f\u3002\r\n  const btnStartQuery  = document.getElementById(&quot;btnStartQuery&quot;);\r\n  const inpIsbn        = document.querySelector('input&#x5B;name=&quot;isbn&quot;]');\r\n  const divResult      = document.getElementById(&quot;result&quot;);\r\n\r\n  \/\/ &#x5B;execute ISBN query]\u30dc\u30bf\u30f3\u62bc\u4e0b\u6642\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u767b\u9332\u3059\u308b\u3002\r\n  btnStartQuery.addEventListener(&quot;click&quot;, function() {\r\n    \/\/ ISBN\u30b3\u30fc\u30c9\u5165\u529b\u6b04\u306b\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308b\u5024\u3092\u53d6\u5f97\u3059\u308b\u3002\r\n    let isbn = inpIsbn.value;\r\n    \/\/ Google Books API\u3092\u4f7f\u3063\u3066\u66f8\u7c4d\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3002\r\n    fetch(`https:\/\/www.googleapis.com\/books\/v1\/volumes?q=isbn:${isbn}`)\r\n      .then(resp =&gt; resp.json())\r\n      .then(data =&gt; {\r\n        \/\/ \u66f8\u7c4d\u30c7\u30fc\u30bf\u306e\u89e3\u6790\u3068\u8868\u793a\r\n        if (data.items &amp;&amp; data.items.length &gt; 0) {\r\n          var book = data.items&#x5B;0].volumeInfo;\r\n          console.log('book:', book);\r\n          console.log('# of Authors:', book.authors.length);\r\n          book.authors.forEach(function(e){\r\n            console.log('Author:', e);     \/\/ \u8457\u8005\r\n          });\r\n          divResult.innerHTML = `\r\n              \u30bf\u30a4\u30c8\u30eb: ${book.title}&lt;br \/&gt;\r\n              \u8457\u8005:     ${book.authors}&lt;br \/&gt;\r\n              \u51fa\u7248\u793e:   ${book.publisher}\r\n          `;\r\n        } else {\r\n          divResult.innerHTML = `${isbn}\u306e\u66f8\u7c4d\u60c5\u5831\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002`;\r\n          console.log('No book found with that ISBN.');\r\n        }\r\n      })\r\n      .catch(error =&gt; {\r\n        console.error('Error fetching data:', error);\r\n      });\r\n  });\r\n});\r\n<\/pre>\n<h1 class=\"my_h\">3. \u88dc\u8db3\u8aac\u660e<\/h1>\n<h3 class=\"my_h\">(1) \u56fd\u7acb\u56fd\u4f1a\u56f3\u66f8\u9928\u306e Web API\u306f JavaScript\u304b\u3089\u306f\u4f7f\u3048\u306a\u3044<\/h3>\n<p>Google Books API\u306e\u5fdc\u7b54\u30c7\u30fc\u30bf\u3092\u898b\u308b\u3068\u3001\u51fa\u7248\u8005\u3084\u30b8\u30e3\u30f3\u30eb\u306a\u3069\u306e\u60c5\u5831\u304c\u63d0\u4f9b\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u591a\u3044\u3002<br \/>\n\u3053\u306e\u305f\u3081\u3001\u66f8\u7c4d\u60c5\u5831\u304c\u5145\u5b9f\u3057\u3066\u3044\u308b\u56fd\u4f1a\u56f3\u66f8\u9928\u306eWeb API\u3092\u4f7f\u3044\u305f\u3044\u306e\u3060\u304c&#8230;<br \/>\n<span class=\"my_fc_redB\">CORS\u5236\u7d04\u306e\u305f\u3081\u3001\u56fd\u4f1a\u56f3\u66f8\u9928\u306e Web API\u3092 JavaScript\u304b\u3089\u5229\u7528\u3067\u304d\u306a\u3044\u3002<\/span><\/p>\n<p>CORS : Cross-Origin Resource Sharing <span class=\"my_fc_crimsonB\">\u203b\u30b3\u30fc\u30ba\u3068\u767a\u97f3\u3059\u308b\u3002<\/span><br \/>\nOrigin : Web\u30da\u30fc\u30b8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5143\u306e\u30c9\u30e1\u30a4\u30f3\u3001\u30dd\u30fc\u30c8\u756a\u53f7\u3001\u30b9\u30ad\u30fc\u30e0(http. https)\u306e\u3053\u3068\u3002<\/p>\n<p>JavaScript\u3067\u56fd\u7acb\u56fd\u4f1a\u56f3\u66f8\u9928\u306e Web API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u3068\u3001\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u52d5\u4f5c\u3092\u3057\u3066\u3044\u308b\u3002<br \/>\n1.\u3010Web\u30d6\u30e9\u30a6\u30b6\u3011JavaScript\u304b\u3089\u56fd\u4f1a\u56f3\u66f8\u9928 Web API\u306b\u5bfe\u3057\u3066 HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u767a\u884c<br \/>\n2.\u3010\u56fd\u4f1a\u56f3\u66f8\u9928Web\u30b5\u30fc\u30d0\u3011Web API\u306e\u5fdc\u7b54\u30c7\u30fc\u30bf\u3092\u8fd4\u9001<br \/>\n\u3000\u3000<span class=\"my_fc_redB\">\u203b\u3053\u306e\u3068\u304d\u3001HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u306b Access-Control-Allow-Origin \u30d8\u30c3\u30c0\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3002<\/span><br \/>\n3.\u3010Web\u30d6\u30e9\u30a6\u30b6\u3011\u30c7\u30fc\u30bf\u3092\u53d7\u4fe1\u3059\u308b\u304c\u3001HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u5185\u306b CORS\u60c5\u5831\u304c\u7121\u3044\u305f\u3081\u3001\u3053\u308c\u3092\u30e6\u30fc\u30b6\u30fc\u30a2\u30d7\u30ea(=JavaScript\u30d7\u30ed\u30b0\u30e9\u30e0\uff09\u306b\u6e21\u3055\u306a\u3044\u3002<br \/>\n\u3000\u3000\u2192 Web API\u304c\u6a5f\u80fd\u3057\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u3066\u3044\u308b\u3002<\/p>\n<p>\u56e0\u307f\u306b\u3001JavaScript\u304b\u3089\u306e Web API\u5b9f\u884c\u304c\u6210\u529f\u3059\u308b\u5834\u5408\u3001<br \/>\nWeb\u30b5\u30fc\u30d0\u304b\u3089\u306e HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u5185\u306b <span class=\"my_fc_blueB\">Access-Control-Allow-Origin: *<\/span> \u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>CORS(Cross-Origin Resource Sharing)\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u7167\u3055\u308c\u305f\u3044\u3002<br \/>\n<a href=\"https:\/\/aws.amazon.com\/jp\/what-is\/cross-origin-resource-sharing\/\" target=\"_blank\" rel=\"noopener\">https:\/\/aws.amazon.com\/jp\/what-is\/cross-origin-resource-sharing\/<\/a><\/p>\n<p><span class=\"my_fs_big1 my_fw_bold\">CORS\u5236\u7d04\u3092\u56de\u907f\u3057\u3066 JavaScript\u304b\u3089\u306e Web API\u5229\u7528\u3092\u53ef\u80fd\u306b\u3059\u308b\u306b\u306f\uff1f<\/span><br \/>\n\u7b561\uff1a\u4f7f\u3063\u3066\u3044\u308bWeb\u30d6\u30e9\u30a6\u30b6\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3092\u7de9\u548c\u3057\u3001CORS\u5236\u7d04\u3092\u30c1\u30a7\u30c3\u30af\u7121\u306b\u8a2d\u5b9a\u5909\u66f4\u3059\u308b\u3002 <span class=\"my_fc_redB\">\u203b\u5371\u967a\uff1f<\/span><br \/>\n\u7b562\uff1a\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u8005\u306b HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u306b CORS\u60c5\u5831\u3092\u57cb\u3081\u8fbc\u3080\u3088\u3046\u306b\u4f9d\u983c\u3059\u308b\u3002<\/p>\n<h3 class=\"my_h\">(2) \u30a2\u30ed\u30fc\u95a2\u6570\u304b\u3089\u7121\u540d\u95a2\u6570\u3078\u306e\u7f6e\u304d\u63db\u3048<\/h3>\n<p>\u4e0a\u8a18\u306e script.js\u5185\u306e fetch()\u95a2\u6570\u914d\u4e0b\u3067\u306f\u3001\u30a2\u30ed\u30fc\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002<br \/>\n\u3053\u308c\u3092\u7121\u540d\u95a2\u6570\u3067\u66f8\u304d\u63db\u3048\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<p><span class=\"my_fc_crimsonB\">Before<\/span> : \u30a2\u30ed\u30fc\u95a2\u6570<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nfetch(&quot;http:\/\/example.com\/webapi&quot;)\r\n  .then(resp =&gt; resp.json())\r\n  .then(data =&gt; {\r\n    \/\/ do something\r\n    \/\/ \u6b21\u306b\u9023\u9396\u3055\u305b\u308b\u306a\u3089\u3070\u3001retun\u3067 Promise\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u3053\u3068\u3002\r\n  })\r\n  .catch(error =&gt; {\r\n    \/\/ do something\r\n  });\r\n});\r\n<\/pre>\n<p><span class=\"my_fc_deeppinkB\">After<\/span> : \u7121\u540d\u95a2\u6570<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nfetch(&quot;http:\/\/example.com\/webapi&quot;)\r\n  .then(function(resp){\r\n    \/\/ retun\u3067 JSON\u89e3\u6790\u7d50\u679c\u3092 body\u306b\u6301\u3064 Response\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u3002\u2192 \u6b21\u306b\u9023\u9396\r\n    return resp.json();\r\n  })\r\n  .then(function(data){\r\n    \/\/ do something\r\n    \/\/ \u6b21\u306b\u9023\u9396\u3055\u305b\u308b\u306a\u3089\u3070\u3001retun\u3067 Promise\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u3053\u3068\u3002\r\n  })\r\n  .catch(function(error){\r\n    \/\/ do something\r\n  });\r\n});\r\n<\/pre>\n<h3 class=\"my_h\">(3) \u30a2\u30ed\u30fc\u95a2\u6570\u306e\u5f15\u6570\u3068\u623b\u308a\u5024\uff08\u5358\u4e00\u5f0f\u306e\u5834\u5408\uff09<\/h3>\n<p>\u30a2\u30ed\u30fc\u95a2\u6570\u306e\u672c\u4f53\u304c\u5358\u4e00\u306e\u5f0f\u306e\u5834\u5408\u3001<span class=\"my_fc_blueB\">\u4e2d\u62ec\u5f27\u3068 return \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u7701\u7565\u3067\u304d\u308b<\/span>\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nconst square = x =&gt; x * x;\r\n<\/pre>\n<p>\u4ee5\u4e0b\u3068\u540c\u3058\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nfunction square(x){\r\n  return x * x;\r\n}\r\n<\/pre>\n<h3 class=\"my_h\">(4) \u30a2\u30ed\u30fc\u95a2\u6570\u306e\u5f15\u6570\u3068\u623b\u308a\u5024\uff08\u8907\u6570\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u3042\u308b\u5834\u5408\uff09<\/h3>\n<p>\u8907\u6570\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f\u3001\u547d\u4ee4\u304c\u8907\u6570\u884c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3002<br \/>\n\u6b21\u306e\u4f8b\u3067\u306f\u5f15\u6570\u304c 2\u500b\u3042\u308b\u305f\u3081\u3001\u5f15\u6570\u306e\u5ba3\u8a00\u3092 () \u3067\u56f2\u3080\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nconst add = (x, y) =&gt; {\r\n  const sum = x + y;\r\n  return sum;\r\n};\r\n<\/pre>\n<p>\u4ee5\u4e0b\u3068\u540c\u3058\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nfunction add(x, y){\r\n  const sum = x + y;\r\n  return sum;\r\n}\r\n<\/pre>\n<h3 class=\"my_h\">(5) JavaScript\u306e Promise\u30af\u30e9\u30b9<\/h3>\n<p>fetch\u95a2\u6570\u306f Promise\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u305f\u3081\u3001.then\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u51e6\u7406\u3059\u308b\u3002<br \/>\n<a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/JavaScript\/Guide\/Using_promises\" target=\"_blank\" rel=\"noopener\">MDN\u516c\u5f0f\u30b5\u30a4\u30c8\u306e Promise\u306e\u8aac\u660e\u306f\u3053\u3061\u3089 \u203b\u8981\u719f\u8aad<\/a><\/p>\n<p>\u7406\u89e3\u3059\u3079\u304d\u30dd\u30a4\u30f3\u30c8\u3092\u4ee5\u4e0b\u306b\u5217\u6319\u3059\u308b\u3002\uff08\u500b\u4eba\u7684\u306a\u610f\u898b\uff09<\/p>\n<ul>\n<li>Promise\u306f\u3001\u975e\u540c\u671f\u51e6\u7406\u306e\u6700\u7d42\u7684\u306a\u5b8c\u4e86\u3082\u3057\u304f\u306f\u5931\u6557\u3092\u8868\u3059\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<\/li>\n<li>Promise\u306f\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u95a2\u6570\u306b\u6e21\u3059\u304b\u308f\u308a\u306b\u3001\u95a2\u6570\u304c\u8fd4\u3057\u305f Promise\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u767b\u9332\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/li>\n<li>2\u3064\u4ee5\u4e0a\u306e\u975e\u540c\u671f\u51e6\u7406\u3092\u9023\u7d9a\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u524d\u56de\u306e\u51e6\u7406\u304c\u6210\u529f\u3057\u305f\u3068\u304d\u306b\u3001\u305d\u306e\u7d50\u679c\u3092\u3082\u3068\u306b\u5f8c\u7d9a\u306e\u51e6\u7406\u3092\u59cb\u3081\u3089\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 \u66f8\u7c4d\u306e\u88cf\u8868\u7d19\u306b\u30d7\u30ea\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b ISBN\u30b3\u30fc\u30c9 \u306e\u5024\u304b\u3089\u66f8\u7c4d\u60c5\u5831\u3092\u53d6\u5f97\u3057\u305f\u3044\u3002 \u3053\u306e\u305f\u3081\u306e Web API\u304c\u3044\u308d\u3044\u308d\u306a\u30b5\u30a4\u30c8\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3002 \u2193 ISBN\u30b3\u30fc\u30c9 \u2193 \u4eca\u56de\u306f Google Book\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/hp\/blog142\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,43],"tags":[],"class_list":["post-2141","post","type-post","status-publish","format-standard","hentry","category-javascriptjquery","category-web-api"],"views":665,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/2141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/comments?post=2141"}],"version-history":[{"count":78,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/2141\/revisions"}],"predecessor-version":[{"id":2302,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/2141\/revisions\/2302"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/media?parent=2141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/categories?post=2141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/tags?post=2141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}