{"id":8815,"date":"2025-09-03T22:47:22","date_gmt":"2025-09-03T13:47:22","guid":{"rendered":"https:\/\/code-plus.jp\/gp\/?p=8815"},"modified":"2026-09-03T14:06:38","modified_gmt":"2026-09-03T05:06:38","slug":"cache-cleaner-8815","status":"publish","type":"post","link":"https:\/\/code-plus.jp\/gp\/cache-cleaner-8815\/","title":{"rendered":"\u30ad\u30e3\u30c3\u30b7\u30e5\u30af\u30ea\u30a2\u3092\u3059\u308bJavaScript\u300ccache-cleaner.js\u300d"},"content":{"rendered":"<p>Web\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u300c\u753b\u50cf\u304c\u5909\u308f\u3063\u3066\u3044\u306a\u3044\u300d\u300c\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u300d\u3068\u3044\u3063\u305f\u5831\u544a\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5ea6\u306b\u300c\u30d6\u30e9\u30a6\u30b6\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u300d\u3068\u8aac\u660e\u3059\u308b\u306e\u3082\u5927\u5909\u3067\u3059\u3057\u3001\u4e00\u822c\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u30af\u30ea\u30a2\u306e\u64cd\u4f5c\u306f\u96e3\u3057\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\r\n<p>\u305d\u3093\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b JavaScript \u30c4\u30fc\u30eb <code>cache-cleaner.js<\/code> \u306b\u3064\u3044\u3066\u3001\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\r\n\r\n<!-- \u2756\u76ee\u6b21\u30ea\u30b9\u30c8 -->\r\n<ul class=\"tocList mt-1.5r\" data-toc-id=\"js-tocBWGD\" style=\"height:28rem\"><\/ul>\r\n<ins class=\"tocBtn is-fixed\" data-toc-id=\"js-tocBWGD\"><\/ins>\r\n\r\n\r\n\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">cache-cleaner.js \u3068\u306f\uff1f<\/h2>\r\n<p><code>cache-cleaner.js<\/code> \u306f\u3001\u30d6\u30e9\u30a6\u30b6\u30ad\u30e3\u30c3\u30b7\u30e5\u3001sessionStorage\u3001localStorage \u3092\u7c21\u5358\u306b\u30af\u30ea\u30a2\u3067\u304d\u308b JavaScript \u30c4\u30fc\u30eb\u3067\u3059\u3002\u7279\u5fb4\u7684\u306a\u306e\u306f\u3001<b class=\"fw-600\">\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u306e\u307f\u52d5\u4f5c\u3059\u308b<\/b>\u305f\u3081\u3001\u672c\u756a\u74b0\u5883\u306b\u8a2d\u7f6e\u3057\u3066\u3044\u3066\u3082\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u306b\u306f\u898b\u3048\u306a\u3044\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<\/p>\r\n<h3 class=\"fz-ml\">\u4e3b\u306a\u7279\u5fb4<\/h3>\r\n<ul style=\"list-style-type: bullet;\">\r\n<li><b class=\"fw-600\">\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u5236\u5fa1<\/b>\uff1a<code>?debug=1<\/code> \u3084 <code>?debug=true<\/code> \u306e\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u306e\u307f\u8868\u793a<\/li>\r\n<li><b class=\"fw-600\">\u76f4\u611f\u7684\u306aUI<\/b>\uff1a\u53f3\u4e0b\u306b\u56fa\u5b9a\u914d\u7f6e\uff08\u30c8\u30c3\u30d7\u306b\u623b\u308b\u30dc\u30bf\u30f3\u306e\u8fd1\u304f\u3067\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\uff09\u306e\u308f\u304b\u308a\u3084\u3059\u3044\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/li>\r\n<\/ul>\r\n<p>&nbsp;<\/p>\r\n<p><img decoding=\"async\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/2025-09-03_230333.png?ver=20260903140638\" alt=\"\" width=\"1392\" height=\"827\" class=\"alignnone size-full wp-image-8822\" \/><\/p>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">3\u6bb5\u968e\u306e\u30af\u30ea\u30a2\u6a5f\u80fd<\/h2>\r\n<h3 class=\"fz-ml\">1. \u30b9\u30fc\u30d1\u30fc\u30ea\u30ed\u30fc\u30c9<\/h3>\r\n<pre><code class=\"language-javascript\">case 'reload':\r\nif (confirm('\u30da\u30fc\u30b8\u3092\u30b9\u30fc\u30d1\u30fc\u30ea\u30ed\u30fc\u30c9\u3057\u307e\u3059\u304b\uff1f')) {\r\n  showToast('\u30ea\u30ed\u30fc\u30c9\u4e2d...');\r\n  setTimeout(() =&gt; {\r\n  location.reload(true);\r\n  }, 500);\r\n}\r\nbreak;\r\n<\/code><\/pre>\r\n<ul style=\"list-style-type: bullet;\">\r\n<li><b class=\"fw-600\">\u5bfe\u8c61<\/b>\uff1a\u30d6\u30e9\u30a6\u30b6\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4e00\u90e8<\/li>\r\n<li><b class=\"fw-600\">\u7528\u9014<\/b>\uff1aCSS \u3084 JavaScript \u306e\u66f4\u65b0\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u5834\u5408<\/li>\r\n<li><b class=\"fw-600\">\u5f71\u97ff<\/b>\uff1a\u6700\u5c0f\u9650\uff08\u30c7\u30fc\u30bf\u306f\u4fdd\u6301\uff09<\/li>\r\n<\/ul>\r\n<h3 class=\"fz-ml\">2. sessionStorage\u30af\u30ea\u30a2<\/h3>\r\n<pre><code class=\"language-javascript\">case 'session':\r\nif (confirm('sessionStorage\u3092\u30af\u30ea\u30a2\u3057\u3066\u518d\u8aad\u307f\u8fbc\u307f\u3057\u307e\u3059\u304b\uff1f')) {\r\n  try {\r\n    sessionStorage.clear();\r\n    showToast('sessionStorage\u3092\u30af\u30ea\u30a2\u3057\u307e\u3057\u305f');\r\n    setTimeout(() =&gt; {\r\n      location.reload(true);\r\n    }, 1000);\r\n  } catch (e) {\r\n    showToast('\u30a8\u30e9\u30fc: ' + e.message);\r\n  }\r\n}\r\nbreak;\r\n<\/code><\/pre>\r\n<ul style=\"list-style-type: bullet;\">\r\n<li><b class=\"fw-600\">\u5bfe\u8c61<\/b>\uff1a\u30bf\u30d6\u30b9\u30b3\u30fc\u30d7\u306e\u4e00\u6642\u30c7\u30fc\u30bf<\/li>\r\n<li><b class=\"fw-600\">\u7528\u9014<\/b>\uff1a\u30d5\u30a9\u30fc\u30e0\u306e\u4e0b\u66f8\u304d\u3084\u4e00\u6642\u7684\u306a\u8a2d\u5b9a\u304c\u554f\u984c\u306e\u5834\u5408<\/li>\r\n<li><b class=\"fw-600\">\u5f71\u97ff<\/b>\uff1a\u305d\u306e\u30bf\u30d6\u306e\u4e00\u6642\u30c7\u30fc\u30bf\u306e\u307f\u524a\u9664<\/li>\r\n<\/ul>\r\n<h3 class=\"fz-ml\">3. sessionStorage + localStorage\u30af\u30ea\u30a2<\/h3>\r\n<pre><code class=\"language-javascript\">case 'all':\r\nif (confirm('sessionStorage, localStorage\u3092\u30af\u30ea\u30a2\u3057\u3066\u518d\u8aad\u307f\u8fbc\u307f\u3057\u307e\u3059\u304b\uff1f')) {\r\n  try {\r\n    localStorage.clear();\r\n    sessionStorage.clear();\r\n    showToast('sessionStorage, localStorage\u3092\u30af\u30ea\u30a2\u3057\u307e\u3057\u305f');\r\n    setTimeout(() =&gt; {\r\n    location.reload(true);\r\n    }, 1000);\r\n  } catch (e) {\r\n    showToast('\u30a8\u30e9\u30fc: ' + e.message);\r\n  }\r\n}\r\nbreak;\r\n<\/code><\/pre>\r\n<ul style=\"list-style-type: bullet;\">\r\n<li><b class=\"fw-600\">\u5bfe\u8c61<\/b>\uff1alocalStorage + sessionStorage<\/li>\r\n<li><b class=\"fw-600\">\u7528\u9014<\/b>\uff1a\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u3084\u4fdd\u5b58\u30c7\u30fc\u30bf\u304c\u539f\u56e0\u306e\u5834\u5408<\/li>\r\n<li><b class=\"fw-600\">\u5f71\u97ff<\/b>\uff1a\u3059\u3079\u3066\u306e\u30ed\u30fc\u30ab\u30eb\u30c7\u30fc\u30bf\u3092\u524a\u9664<\/li>\r\n<\/ul>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">\u4e3b\u8981\u30b3\u30fc\u30c9\u306e\u89e3\u8aac<\/h2>\r\n<h3 class=\"fz-ml\">1. \u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u5224\u5b9a<\/h3>\r\n<pre><code class=\"language-javascript\">const params = new URLSearchParams(window.location.search);\r\nconst debugValue = params.get('debug');\r\nconst debugMode = ['true', '1'].includes(debugValue?.toLowerCase()) ||\r\n(params.has('debug') &amp;&amp; debugValue === '');\r\n<\/code><\/pre>\r\n<p>\u3053\u306e\u90e8\u5206\u3067\u3001\u4ee5\u4e0b\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\uff1a<\/p>\r\n<ul style=\"list-style-type: bullet;\">\r\n<li><code>?debug=true<\/code><\/li>\r\n<li><code>?debug=1<\/code><\/li>\r\n<li><code>?debug<\/code>\uff08\u5024\u306a\u3057\uff09<\/li>\r\n<\/ul>\r\n<h3 class=\"fz-ml\">2. \u52d5\u7684\u30b9\u30bf\u30a4\u30eb\u6ce8\u5165<\/h3>\r\n<pre><code class=\"language-javascript\">const addStyles = () =&gt; {\r\nconst style = document.createElement('style');\r\nstyle.textContent = `\r\n.cache-cleaner-container {\r\n  position: fixed;\r\n  z-index: 99999;\r\n  bottom: 11pc;\r\n  right: -2px;\r\n  display: ${debugMode ? 'block' : 'none'};\r\n  transition: all 0.3s ease;\r\n}\r\n\/\/ ... \u7701\u7565\r\n`;\r\ndocument.head.appendChild(style);\r\n};\r\n<\/code><\/pre>\r\n<p>CSS \u3092 JavaScript \u5185\u306b\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3067\u3001<b class=\"fw-600\">\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u4f9d\u5b58\u3092\u6392\u9664<\/b>\u3002\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u306e\u72b6\u614b\u306b\u3088\u3063\u3066\u8868\u793a\/\u975e\u8868\u793a\u3092\u5236\u5fa1\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<h3 class=\"fz-ml\">3. \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u4ed8\u304dUI<\/h3>\r\n<pre><code class=\"language-javascript\">.cache-cleaner-buttons {\r\n  display: flex;\r\n  flex-direction: column;\r\n  gap: 10px;\r\n  transform-origin: 100% 100%;\r\n  transform: scale(0) translate(0pc, 0);\r\n  transition: all 0.1s ease-out;\r\n}\r\n.is-opened .cache-cleaner-buttons {\r\n  transform: scale(1) translate(-1pc, -0.5pc);\r\n}\r\n<\/code><\/pre>\r\n<p>\u30b9\u30b1\u30fc\u30eb\u3068\u30c8\u30e9\u30f3\u30b9\u30ec\u30fc\u30c8\u3092\u7d44\u307f\u5408\u308f\u305b\u305f<b class=\"fw-600\">\u30b9\u30e0\u30fc\u30ba\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/b>\u3067\u3001\u30e6\u30fc\u30b6\u30d3\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<h3 class=\"fz-ml\">4. \u30c8\u30fc\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u30b7\u30b9\u30c6\u30e0<\/h3>\r\n<pre><code class=\"language-javascript\">const showToast = (message) =&gt; {\r\n  let toast = document.querySelector('.cache-cleaner-toast');\r\n  if (!toast) {\r\n    toast = document.createElement('div');\r\n    toast.className = 'cache-cleaner-toast';\r\n    document.body.appendChild(toast);\r\n  }\r\n  toast.textContent = message;\r\n  toast.classList.add('show');\r\n  setTimeout(() =&gt; {\r\n    toast.classList.remove('show');\r\n  }, 2000);\r\n};\r\n<\/code><\/pre>\r\n<p>\u51e6\u7406\u306e\u9032\u884c\u72b6\u6cc1\u3092<b class=\"fw-600\">\u8996\u899a\u7684\u306b\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af<\/b>\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u5b89\u5fc3\u611f\u3092\u4e0e\u3048\u307e\u3059\u3002<\/p>\r\n<h3 class=\"fz-ml\">5. \u5b89\u5168\u306a\u521d\u671f\u5316\u51e6\u7406<\/h3>\r\n<pre><code class=\"language-javascript\">const init = () =&gt; {\r\n  \/\/ \u65e2\u5b58\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u3042\u308c\u3070\u524a\u9664\r\n  const existing = document.querySelector('.cache-cleaner-container');\r\n  if (existing) {\r\n    existing.remove();\r\n  }\r\n  addStyles();\r\n  const container = createHTML();\r\n  document.body.appendChild(container);\r\n  setupEventListeners(container);\r\n};\r\n\/\/ DOM\u306e\u8aad\u307f\u8fbc\u307f\u72b6\u614b\u3092\u78ba\u8a8d\r\nif (document.readyState === 'loading') {\r\n  document.addEventListener('DOMContentLoaded', init);\r\n} else {\r\n  init();\r\n}\r\n<\/code><\/pre>\r\n<p><b class=\"fw-600\">\u91cd\u8907\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u9632\u6b62<\/b>\u3068<b class=\"fw-600\">DOM\u8aad\u307f\u8fbc\u307f\u72b6\u614b\u306e\u9069\u5207\u306a\u51e6\u7406<\/b>\u3067\u3001\u78ba\u5b9f\u306a\u521d\u671f\u5316\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">\u5c0e\u5165\u65b9\u6cd5<\/h2>\r\n<h3 class=\"fz-ml\">1. \u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u7f6e<\/h3>\r\n<pre><code class=\"language-html\">&lt;script src=\"path\/to\/cache-cleaner.js\"&gt;&lt;\/script&gt;\r\n<\/code><\/pre>\r\n<h3 class=\"fz-ml\">2. \u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u30a2\u30af\u30bb\u30b9<\/h3>\r\n<pre><code class=\"language-\">https:\/\/example.com\/?debug=1\r\nhttps:\/\/example.com\/?debug=true\r\nhttps:\/\/example.com\/?debug\r\n<\/code><\/pre>\r\n<h3 class=\"fz-ml\">3. \u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u306e\u5236\u5fa1<\/h3>\r\n<pre><code class=\"language-javascript\">\/\/ \u8868\u793a\r\nwindow.CacheCleaner.show();\r\n\/\/ \u975e\u8868\u793a\r\nwindow.CacheCleaner.hide();\r\n\/\/ \u5207\u308a\u66ff\u3048\r\nwindow.CacheCleaner.toggle();\r\n<\/code><\/pre>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3078\u306e\u914d\u616e<\/h2>\r\n<ul style=\"list-style-type: bullet;\">\r\n<li><b class=\"fw-600\">\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u306e\u307f\u52d5\u4f5c<\/b>\uff1a\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u306b\u306f\u898b\u3048\u306a\u3044<\/li>\r\n<li><b class=\"fw-600\">\u78ba\u8a8d\u30c0\u30a4\u30a2\u30ed\u30b0<\/b>\uff1a\u8aa4\u64cd\u4f5c\u3092\u9632\u6b62<\/li>\r\n<li><b class=\"fw-600\">\u5373\u5ea7\u5b9f\u884c\u95a2\u6570<\/b>\uff1a\u30b0\u30ed\u30fc\u30d0\u30eb\u540d\u524d\u7a7a\u9593\u306e\u6c5a\u67d3\u3092\u56de\u907f<\/li>\r\n<li><b class=\"fw-600\">\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/b>\uff1atry-catch \u3067\u30a8\u30e9\u30fc\u3092\u9069\u5207\u306b\u51e6\u7406<\/li>\r\n<\/ul>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">\u307e\u3068\u3081<\/h2>\r\n<p><code>cache-cleaner.js<\/code> \u306f\u3001Web\u958b\u767a\u306b\u304a\u3051\u308b\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u554f\u984c\u300d\u3092\u89e3\u6c7a\u3059\u308b\u4fbf\u5229\u306aJavaScript\u3067\u3059\u3002<\/p>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">\u95a2\u9023\u8a18\u4e8b<\/h2>\r\n\r\n<a href=\"https:\/\/code-plus.jp\/gp\/cache-session-storage-8810\/\" class=\"linkbox my-1.5r\">\r\n<h4 class=\"linkbox-title fz-md\">\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u9055\u3044\u3001JavaScript\u3067 \u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5<\/h4>\r\n<picture class=\"linkbox-thumbnail\">\r\n<img decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/c505a5a78c8cb86501491d998df043f8.jpg?ver=20260903140638\" alt=\"\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u9055\u3044\u3001JavaScript\u3067 \u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5\" loading=\"lazy\" \/>\r\n<\/picture>\r\n<span class=\"linkbox-excerpt\">\u30a6\u30a7\u30d6\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u3068\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u300d\u300c\u30b9\u30c8\u30ec\u30fc\u30b8\u300d\u300c\u30bb\u30c3\u30b7\u30e7\u30f3\u300d\u3068\u3044\u3046\u4f3c\u305f\u3088\u3046\u306a\u8a00\u8449\u304c\u983b\u7e41\u306b\u767b\u5834\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u3059\u3079\u3066\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u7570\u306a\u308b\u7279\u6027\u3068\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u3053\u308c\u3089\u306e\u9055\u3044\u3092\u6574\u7406\u3057\u3001JavaScript\u3067\u30af\u30ea\u30a2\u3059\u308b\u65b9...\r\n&emsp;<u class=\"linkbox-more\">\u7d9a\u304d\u3092\u8aad\u3080<\/u>\r\n<\/span>\r\n<\/a>\r\n\r\n<a href=\"https:\/\/code-plus.jp\/gp\/wp-image-query-11794\/\" class=\"linkbox my-1.5r\">\r\n<h4 class=\"linkbox-title fz-md\">\u3010WordPress\u3011\u753b\u50cfURL\u306b\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4fdd\u5b58\u6642\u306b\u81ea\u52d5\u4ed8\u4e0e\uff5c\u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u7b56<\/h4>\r\n<picture class=\"linkbox-thumbnail\">\r\n<img decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/0a7b43ba-86c1-4335-94b9-9df41aa44452.png?ver=20260903140638\" alt=\"\u3010WordPress\u3011\u753b\u50cfURL\u306b\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4fdd\u5b58\u6642\u306b\u81ea\u52d5\u4ed8\u4e0e\uff5c\u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u7b56\" loading=\"lazy\" \/>\r\n<\/picture>\r\n<span class=\"linkbox-excerpt\">WordPress\u3067\u753b\u50cf\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u7b56\u3068\u3057\u3066`?ver=`\u30af\u30a8\u30ea\u3092\u81ea\u52d5\u4ed8\u4e0e\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3002`the_content`\u30d5\u30a3\u30eb\u30bf\u30fc\u65b9\u5f0f\u306e\u9650\u754c\u3068\u3001`content_save_pre`\u3067DB\u3078\u76f4\u63a5\u66f8\u304d\u8fbc\u3080\u65b0\u65b9\u5f0f\u306e\u5b8c\u5168\u306a\u30b3\u30fc\u30c9\u3001Better Search ...\r\n&emsp;<u class=\"linkbox-more\">\u7d9a\u304d\u3092\u8aad\u3080<\/u>\r\n<\/span>\r\n<\/a>\r\n\r\n<a href=\"https:\/\/code-plus.jp\/gp\/aspect-ratio-13691\/\" class=\"linkbox my-1.5r\">\r\n<h4 class=\"linkbox-title fz-md\">\u753b\u50cf\u306e\u30a2\u30b9\u30da\u30af\u30c8\u6bd4\u3092\u81ea\u52d5\u8a08\u7b97\u30fb\u4ed8\u4e0e\u3059\u308b | aspect-ratio\u304c\u52b9\u304b\u306a\u3044\u539f\u56e0\u3068CLS\u5bfe\u7b56<\/h4>\r\n<picture class=\"linkbox-thumbnail\">\r\n<img decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/aspect-ratio_Web_2D_2-3.jpg?ver=20260903140638\" alt=\"\u753b\u50cf\u306e\u30a2\u30b9\u30da\u30af\u30c8\u6bd4\u3092\u81ea\u52d5\u8a08\u7b97\u30fb\u4ed8\u4e0e\u3059\u308b | aspect-ratio\u304c\u52b9\u304b\u306a\u3044\u539f\u56e0\u3068CLS\u5bfe\u7b56\" loading=\"lazy\" \/>\r\n<\/picture>\r\n<span class=\"linkbox-excerpt\">CSS aspect-ratio\u304c\u52b9\u304b\u306a\u3044\u539f\u56e0\u3092\u62bc\u3055\u3048\u3064\u3064\u3001\u6295\u7a3f\u4fdd\u5b58\u6642\u306b\u5b9f\u753b\u50cf\u304b\u3089\u30a2\u30b9\u30da\u30af\u30c8\u6bd4\uff08\u7e26\u6a2a\u6bd4\uff09\u3092\u81ea\u52d5\u8a08\u7b97\u30fb\u81ea\u52d5\u4ed8\u4e0e\u3057\u3001SP\/PC\u306e\u51fa\u3057\u5206\u3051\u307e\u3067\u624b\u4f5c\u696d\u30bc\u30ed\u3067\u7dad\u6301\u3059\u308b\u4ed5\u7d44\u307f\u3001CLS\u5bfe\u7b56\u3068\u3057\u3066\u7121\u7406\u306a\u304f\u904b\u7528\u3059\u308b\u305f\u3081\u306e\u5b9f\u904b\u7528\u3067\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002\r\n&emsp;<u class=\"linkbox-more\">\u7d9a\u304d\u3092\u8aad\u3080<\/u>\r\n<\/span>\r\n<\/a>","protected":false},"excerpt":{"rendered":"Web\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u300c\u753b\u50cf\u304c\u5909\u308f\u3063\u3066\u3044\u306a\u3044\u300d\u300c\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u300d\u3068\u3044\u3063\u305f\u5831\u544a\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5ea6\u306b\u300c\u30d6\u30e9\u30a6\u30b6\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u300d\u3068\u8aac\u660e\u3059\u308b\u306e\u3082\u5927\u5909\u3067\u3059\u3057\u3001\u4e00\u822c\u306e\u30e6\u30fc\u30b6[...]","protected":false},"author":1,"featured_media":8835,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","footnotes":"","vk-ltc-link":"","vk-ltc-target":"0"},"categories":[12],"tags":[374,373,349,348,278,113],"group":[],"pg":[],"class_list":["post-8815","post","type-post","status-publish","format-standard","has-post-thumbnail","category-javascript","tag-web","tag-373","tag-349","tag-348","tag-278","tag-javascript"],"acf":[],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/8815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/comments?post=8815"}],"version-history":[{"count":0,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/8815\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media\/8835"}],"wp:attachment":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media?parent=8815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/categories?post=8815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/tags?post=8815"},{"taxonomy":"group","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/group?post=8815"},{"taxonomy":"pg","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/pg?post=8815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}