{"id":1591,"date":"2021-03-04T23:01:05","date_gmt":"2021-03-04T14:01:05","guid":{"rendered":"https:\/\/www.dogrow.net\/hp\/?p=1591"},"modified":"2021-03-13T04:34:06","modified_gmt":"2021-03-12T19:34:06","slug":"blog102","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/hp\/blog102\/","title":{"rendered":"(102) JavaScript\u3067\u30da\u30fc\u30b8\u3092\u5f37\u5236\u30ea\u30ed\u30fc\u30c9"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>WEB\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u4e2d\u306e\u30da\u30fc\u30b8\u3092 JavaScript\u3067\u5f37\u5236\u30ea\u30ed\u30fc\u30c9\u3055\u305b\u305f\u3044\u3002<\/p>\n<p>FireFox\u3092\u611b\u7528\u3057\u3066\u3044\u308b\u81ea\u5206\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u6e80\u8db3\u3057\u3066\u3044\u305f\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nlocation.reload(true);\r\n<\/pre>\n<p>\u3068\u3053\u308d\u304c\u3053\u308c\u3060\u3068&#8230;<br \/>\n<span class=\"my_fc_crimsonBBig\">Google Chrome\u3067\u30ea\u30ed\u30fc\u30c9\u3055\u308c\u306a\u3044\uff01<\/span><br \/>\n\u306e\u3067\u3042\u3063\u305f\u3002<\/p>\n<p>\u306a\u305c\u306a\u3089\u3070&#8230;<br \/>\nlocation.reload(true) \u3067\u5f37\u5236\u3092\u6307\u793a\u3059\u308b true\u306f\u3001<br \/>\n<span class=\"my_fc_crimsonBBig\">\u975e\u516c\u5f0f\u306a\u4ed5\u69d8<\/span><br \/>\n\u306a\u306e\u3060\u305d\u3046\u3060\u3002<\/p>\n<p>\u3067\u3082&#8230;<br \/>\n<span class=\"my_fc_deeppinkBBig\">Google Chrome\u3067\u3082 JavaScript\u3067\u30da\u30fc\u30b8\u3092\u5f37\u5236\u30ea\u30ed\u30fc\u30c9\u3055\u305b\u305f\u3044\uff01<\/span><\/p>\n<h1 class=\"my_h\">2. \u3084\u3063\u3066\u307f\u308b<\/h1>\n<h3 class=\"my_h\">\u5bfe\u7b561 : URL\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4ed8\u3051\u308b\u3002<\/h3>\n<p>CSS\u3084 JavaScript\u30d5\u30a1\u30a4\u30eb\u306e\u66f4\u65b0\u6642\u306a\u3069\u306b\u3088\u304f\u3084\u3063\u3066\u3044\u308b\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nfunction execReloadPage(){\r\n  var date = new Date();\r\n  window.location = get_baseUrl() + '?v=' + date.getTime();\r\n}\r\n<\/pre>\n<p>\u7387\u76f4\u306b\u8a00\u3063\u3066\u30c0\u30b5\u3044\u3002<\/p>\n<p>\u3057\u304b\u3082&#8230;<br \/>\n<span class=\"my_fc_crimson\">\u5f8c\u3067\u30d1\u30e9\u30e1\u30fc\u30bf\u306a\u3057\u306e URL\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u53e4\u3044\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u3002<\/span><\/p>\n<p>\u3088\u3063\u3066&#8230;<br \/>\n<span class=\"my_fc_crimsonBBig\">\u3053\u308c\u306f\u5b9f\u7528\u306b\u8010\u3048\u3089\u308c\u306a\u3044\u3068\u5224\u65ad\u3057\u305f\u3002<\/span><\/p>\n<h3 class=\"my_h\">\u5bfe\u7b562 : Ajax\u3067\u30da\u30fc\u30b8\u3092\u5f37\u5236\u30ea\u30ed\u30fc\u30c9\u3057\u305f\u5f8c\u306b\u9077\u79fb\u3059\u308b\u3002<\/h3>\n<p>Ajax\u3092\u4f7f\u3044\u3001no cache\u6307\u5b9a\u3067\u4e00\u5ea6\u88cf\u3067\u30da\u30fc\u30b8\u3092\u5f37\u5236\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u3002<br \/>\n\u3053\u3053\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u30af\u30ea\u30a2\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u5f8c\u306f\u666e\u901a\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n  $.ajax({\r\n    type: &quot;post&quot;,\r\n    url: window.location.href,\r\n    async: false,\r\n    cache : false,\r\n  }).done(function () {\r\n    window.location.reload(true);\r\n  });\r\n<\/pre>\n<p><span class=\"my_fc_deeppinkBBig\">\u3053\u3061\u3089\u3092\u63a1\u7528\u3057\u3088\u3046\uff01<\/span><\/p>\n<h1 class=\"my_h\">3. \u53c2\u8003\u60c5\u5831<\/h1>\n<p><a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/API\/Location\/reload\" target=\"_blank\" rel=\"noopener\">https:\/\/developer.mozilla.org\/ja\/docs\/Web\/API\/Location\/reload<\/a><\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 WEB\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u4e2d\u306e\u30da\u30fc\u30b8\u3092 JavaScript\u3067\u5f37\u5236\u30ea\u30ed\u30fc\u30c9\u3055\u305b\u305f\u3044\u3002 FireFox\u3092\u611b\u7528\u3057\u3066\u3044\u308b\u81ea\u5206\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u6e80\u8db3\u3057\u3066\u3044\u305f\u3002 location.reload(true); \u3068\u3053\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/hp\/blog102\/\">\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":[18,4],"tags":[],"class_list":["post-1591","post","type-post","status-publish","format-standard","hentry","category-ajax","category-javascriptjquery"],"views":2576,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/1591","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=1591"}],"version-history":[{"count":9,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/1591\/revisions"}],"predecessor-version":[{"id":1640,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/1591\/revisions\/1640"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/media?parent=1591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/categories?post=1591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/tags?post=1591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}