{"id":5992,"date":"2018-07-16T23:55:06","date_gmt":"2018-07-16T14:55:06","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=5992"},"modified":"2023-05-27T20:59:49","modified_gmt":"2023-05-27T11:59:49","slug":"%e3%80%90javascript%e3%80%91%e3%80%8cspa%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=5992","title":{"rendered":"\u3010JavaScript\u3011\u300cSPA\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>SPA\u3068\u306f\uff1f<\/h2>\n<p>Single-page Application\u306e\u7565\u3067\u3059\u3002<\/p>\n<h2>SPA\u306e\u7279\u5fb4<\/h2>\n<ul>\n<li>\u30d6\u30e9\u30a6\u30b6\u3067\u6700\u521d\u306b\u958b\u3044\u305f\u30da\u30fc\u30b8\u3092\u8d77\u70b9\u3068\u3057\u3066\u3001\u69d8\u3005\u306a\u753b\u9762\u9077\u79fb\u3092\u884c\u3046\u304c\u3001\u6700\u521d\u306b\u8fd4\u3055\u308c\u305f\uff28\uff34\uff2d\uff2c\u3060\u3051\u3067\u753b\u9762\u9077\u79fb\u3082\u5b8c\u7d50\u3059\u308b\u3053\u3068\u3002<\/li>\n<li>URL\u306f\u3001\u30da\u30fc\u30b8\u5185\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u9077\u79fb\u3067\u3082\u5909\u5316\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u5c65\u6b74\u3067\u524d\u306e\u753b\u9762\u306b\u623b\u308c\u308b\u3002<\/li>\n<li>\u30da\u30fc\u30b8\u306e\u8868\u793a\u306b\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u306f\u9010\u6b21\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089WebAPI\u3067\u53d6\u308a\u51fa\u3059\u3002<\/li>\n<li>\u300c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u300d\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u3002<\/li>\n<\/ul>\n<h2>SPA\u306e\u30e1\u30ea\u30c3\u30c8<\/h2>\n<p>\u7279\u306b\u30c7\u30fc\u30bf\u91cf\u304c\u591a\u3044\u30da\u30fc\u30b8\u3068\u304b\u3060\u3068\u305d\u3046\u3067\u3059\u304c\u30d6\u30e9\u30a6\u30b6\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u306b\u306f\u5927\u304d\u306a\u30b3\u30b9\u30c8\u304c\u767a\u751f\u3057\u307e\u3059\u3002SPA\u306e\u5834\u5408\u306f\u4e00\u5ea6\u306b\u307e\u3068\u3081\u3066Web\u30ea\u30bd\u30fc\u30b9\u3092\u53d6\u5f97\u3059\u308b\u306e\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u306e\u8ca0\u8377\u306f\u4f4e\u304f\u306a\u308a\u307e\u3059\u3002\uff08\u30c7\u30fc\u30bf\u306fwebAPI\u3067\u307e\u3068\u3081\u3066\u53d6\u5f97\u3059\u308b\u306e\u3067\u3001\u305d\u306e\u5206\u306eloading\u6642\u9593\u306a\u3069\u306f\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u306f\u3042\u308a\u307e\u3059\u304c\u3002\uff09<\/p>\n<h2>Ajax\u3068\u306e\u9055\u3044<\/h2>\n<p>Ajax\u306f\u3001\u30da\u30fc\u30b8\u306e\u4e00\u90e8\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\uff33\uff30\uff21\u306f\u30da\u30fc\u30b8\u5168\u4f53\u3092\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u306b\u9077\u79fb\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u753b\u9762\u9077\u79fb\u306f\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u4f9d\u5b58\u3057\u307e\u305b\u3093\u3002<\/p>\n<h2>\u300c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u300d\u3068\u306f\uff1f<\/h2>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3067\u3001\uff35\uff32\uff2c\u306b\u5bfe\u5fdc\u3057\u305f\u753b\u9762\u3092\u7528\u610f\u3067\u304d\u308b\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<span style=\"color: #ff0000;\"><strong>\uff35\uff32\uff2c\u306f\u5909\u5316\u3057\u307e\u3059\u304c\u3001SPA\u306e\u4ed5\u7d44\u4e0a\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u767a\u751f\u3057\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<h3>\u306a\u305c\u3053\u308c\u304c\u5fc5\u8981\u306a\u306e\u304b\uff1f<\/h3>\n<p>SPA\u3067\u306f\u3001\u8907\u6570\u306e\u753b\u9762\u3067\u69cb\u6210\u3055\u308c\u305f\u30a2\u30d7\u30ea\u3067\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>URL\u5358\u4f4d\u3067\u30b5\u30fc\u30d0\u30fc\u304b\u3089HTML\u304c\u8fd4\u3055\u308c\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<p>\u306a\u306e\u3067\u3001\u666e\u901a\u306b\u4f5c\u308b\u3068\u4e00\u3064\u306e\uff35\uff32\uff2c\u3067\u753b\u9762\u304c\u5909\u5316\u3059\u308b\u30a2\u30d7\u30ea\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u30a2\u30d7\u30ea\u306e\u5834\u5408\u306f\u3001\u4e0b\u8a18\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d6\u30e9\u30a6\u30b6\u306e\u623b\u308b\u30dc\u30bf\u30f3\u304c\u4f7f\u3048\u306a\u3044\u3002<\/li>\n<li>\u30d6\u30c3\u30af\u30de\u30fc\u30af\u767b\u9332\u304c\u3067\u304d\u306a\u3044\u3002<\/li>\n<li>\u30a2\u30d7\u30ea\u306e\u9014\u4e2d\u306e\u72b6\u614b\u3092\u30b7\u30a7\u30a2\u3067\u304d\u306a\u304f\u306a\u308b\u3002<\/li>\n<\/ul>\n<h2>SPA\u3067\u8a8d\u8a3c\u3092\u5b9f\u88c5\u3059\u308b\u5834\u5408<\/h2>\n<p>\u8a8d\u8a3c\u65b9\u5f0f\u306e\u7a2e\u985e\u3068\u3057\u3066\u306f\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"GsH6TP8faf\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=285\">\u3010Web\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3011\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u306e\u7a2e\u985e\u306b\u3064\u3044\u3066<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=285&#038;embed=true#?secret=GsH6TP8faf\" data-secret=\"GsH6TP8faf\" width=\"500\" height=\"282\" title=\"&#8220;\u3010Web\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3011\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u306e\u7a2e\u985e\u306b\u3064\u3044\u3066&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h3>\u30d5\u30a9\u30fc\u30e0\u8a8d\u8a3c\u3092\u4f7f\u3046<\/h3>\n<p>\u30e2\u30ce\u30b7\u30ea\u30c3\u30af\u306a\u30a2\u30d7\u30ea\u3068\u3057\u3066SPA\u3092\u63a1\u7528\u3059\u308b\u5834\u5408\u306f\u3053\u3061\u3089\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a8d\u8a3c\u7528\u306e\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3001\u8a8d\u8a3c\u304c\u7d42\u308f\u3063\u305f\u6bb5\u968e\u3067\u3001SPA\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30e1\u30ea\u30c3\u30c8<\/h4>\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u304c\u5206\u304b\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001SPA\u306b\u8907\u96d1\u306a\u8a8d\u8a3c\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u7d44\u307e\u306a\u304f\u3066\u3088\u3044\u70b9\u3002<\/p>\n<h3>\u30c8\u30fc\u30af\u30f3\u8a8d\u8a3c\u3092\u4f7f\u3046<\/h3>\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306eSPA\u3068\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u5b8c\u5168\u306b\u5206\u96e2\u3055\u305b\u308b\u65b9\u5f0f\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>JavaScript\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u5236\u5fa1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4>\u30e1\u30ea\u30c3\u30c8<\/h4>\n<p>\u30d5\u30ed\u30f3\u30c8\u304c\u5206\u96e2\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30a6\u30a7\u30d6\u7248\u3092\u4f5c\u3063\u305f\u5f8c\u306b\u3001\u30e2\u30d0\u30a4\u30eb\u7248\u3092\u4f5c\u308b\u7b49\u306e\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u304c\u3057\u3084\u3059\u3044\u69cb\u6210\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"SPA\u3068\u306f\uff1f Single-page Application\u306e\u7565\u3067\u3059\u3002 SPA\u306e\u7279\u5fb4 \u30d6\u30e9\u30a6\u30b6\u3067\u6700\u521d\u306b\u958b\u3044\u305f\u30da\u30fc\u30b8\u3092\u8d77\u70b9\u3068\u3057\u3066\u3001\u69d8\u3005\u306a\u753b\u9762\u9077\u79fb\u3092\u884c\u3046\u304c\u3001\u6700\u521d\u306b\u8fd4\u3055\u308c\u305f\uff28\uff34\uff2d\uff2c\u3060\u3051\u3067\u753b\u9762\u9077\u79fb\u3082\u5b8c\u7d50\u3059\u308b\u3053\u3068\u3002 URL\u306f\u3001\u30da\u30fc [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5992"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5992"}],"version-history":[{"count":9,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5992\/revisions"}],"predecessor-version":[{"id":20295,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5992\/revisions\/20295"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5992"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}