{"id":169418,"date":"2024-05-08T16:45:32","date_gmt":"2024-05-08T08:45:32","guid":{"rendered":""},"modified":"2024-05-08T16:45:44","modified_gmt":"2024-05-08T08:45:44","slug":"javascript-%e5%a6%82%e4%bd%95%e8%8e%b7%e5%8f%96%e5%85%83%e7%b4%a0%e6%a0%b7%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/169418.html","title":{"rendered":"JavaScript \u5982\u4f55\u83b7\u53d6\u5143\u7d20\u6837\u5f0f"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27035817\/5c098ae8-af24-424d-81f8-7bdcb4fb54d6.webp\" alt=\"JavaScript \u5982\u4f55\u83b7\u53d6\u5143\u7d20\u6837\u5f0f\" \/><\/p>\n<p><p>\u5728Web\u5f00\u53d1\u4e2d\uff0c\u901a\u8fc7JavaScript\u83b7\u53d6\u5143\u7d20\u6837\u5f0f\u662f\u4e00\u9879\u5e38\u89c1\u4e14\u91cd\u8981\u7684\u64cd\u4f5c\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u52a8\u6001\u8bfb\u53d6\u548c\u4fee\u6539\u9875\u9762\u5143\u7d20\u7684\u6837\u5f0f\uff0c\u4ece\u800c\u5b9e\u73b0\u4e30\u5bcc\u7684\u4ea4\u4e92\u6548\u679c\u3002\u83b7\u53d6\u5143\u7d20\u6837\u5f0f\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\u4e09\u79cd\uff1a<strong>\u4f7f\u7528<code>window.getComputedStyle()<\/code>\u65b9\u6cd5\u3001\u4f7f\u7528<code>HTMLElement.style<\/code>\u5c5e\u6027\u3001\u4f7f\u7528<code>element.currentStyle<\/code>\u5c5e\u6027<\/strong>\u3002\u5728\u8fd9\u4e09\u79cd\u65b9\u6cd5\u4e2d\uff0c<strong>\u6700\u63a8\u8350\u4f7f\u7528<code>window.getComputedStyle()<\/code><\/strong>\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u83b7\u53d6\u5230\u5143\u7d20\u6700\u7ec8\u5e94\u7528\u7684\u6240\u6709\u6837\u5f0f\uff0c\u5305\u62ec\u5916\u94fe\u6837\u5f0f\u8868\u3001\u5185\u90e8\u6837\u5f0f\u8868\u53ca\u884c\u5185\u6837\u5f0f\u7684\u8ba1\u7b97\u540e\u7684\u6837\u5f0f\u503c\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528WINDOW.GETCOMPUTEDSTYLE()\u65b9\u6cd5<\/h2>\n<\/p>\n<p><p><code>window.getComputedStyle()<\/code>\u65b9\u6cd5\u662f\u4e00\u4e2a\u53ef\u4ee5\u83b7\u53d6\u5230\u5143\u7d20\u6700\u7ec8\u5e94\u7528\u7684\u6240\u6709\u6837\u5f0f\u7684\u65b9\u6cd5\u3002\u5b83\u7684\u5de5\u4f5c\u539f\u7406\u662f\u8ba1\u7b97\u6307\u5b9a\u5143\u7d20\u7684\u6240\u6709CSS\u5c5e\u6027\u7684\u6700\u7ec8\u503c\uff0c\u5305\u62ec\u90a3\u4e9b\u5728\u5916\u94fe\u7684CSS\u6587\u4ef6\u3001\u9875\u9762\u5185\u90e8\u7684&lt;style&gt;\u6807\u7b7e\u4ee5\u53ca\u5143\u7d20\u7684\u884c\u5185style\u4e2d\u5b9a\u4e49\u7684\u6837\u5f0f\u3002\u8fd9\u610f\u5473\u7740\uff0c\u65e0\u8bba\u6837\u5f0f\u662f\u5982\u4f55\u5b9a\u4e49\u7684\uff0c<code>getComputedStyle()<\/code>\u90fd\u80fd\u51c6\u786e\u8fd4\u56de\u5143\u7d20\u7684\u6700\u7ec8\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u5982\u4f55\u4f7f\u7528WINDOW.GETCOMPUTEDSTYLE()<\/h3>\n<\/p>\n<p><p>\u8981\u4f7f\u7528\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u4f60\u9700\u8981\u63d0\u4f9b\u4e00\u4e2a\u5143\u7d20\u8282\u70b9\u548c\u4e00\u4e2a\u4f2a\u5143\u7d20\u5b57\u7b26\u4e32\uff08\u5982\u679c\u4e0d\u9700\u8981\u83b7\u53d6\u4f2a\u5143\u7d20\u6837\u5f0f\uff0c\u5219\u4f20\u9012<code>null<\/code>\u6216\u5ffd\u7565\u8be5\u53c2\u6570\uff09\u3002\u6bd4\u5982\uff0c\u8981\u83b7\u53d6\u4e00\u4e2aID\u4e3a<code>myElement<\/code>\u7684\u5143\u7d20\u7684\u6700\u7ec8\u6837\u5f0f\uff0c\u4f60\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">var element = document.getElementById(&quot;myElement&quot;);<\/p>\n<p>var style = window.getComputedStyle(element);<\/p>\n<p>console.log(style.width); \/\/ \u8f93\u51fa\u5143\u7d20\u7684\u5bbd\u5ea6<\/p>\n<p>console.log(style.color); \/\/ \u8f93\u51fa\u5143\u7d20\u7684\u5b57\u4f53\u989c\u8272<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e3a\u4ec0\u4e48\u63a8\u8350\u4f7f\u7528WINDOW.GETCOMPUTEDSTYLE()<\/h3>\n<\/p>\n<p><p><strong><code>window.getComputedStyle()<\/code>\u65b9\u6cd5\u7684\u4e3b\u8981\u4f18\u52bf\u5728\u4e8e\u5176\u80fd\u591f\u63d0\u4f9b\u5143\u7d20\u7684\u5b9e\u9645\u6837\u5f0f\u4fe1\u606f<\/strong>\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u90a3\u4e9b\u901a\u8fc7HTML\u7684<code>style<\/code>\u5c5e\u6027\u76f4\u63a5\u8bbe\u7f6e\u7684\u6837\u5f0f\u3002\u8fd9\u5bf9\u4e8e\u9700\u8981\u51c6\u786e\u8bfb\u53d6\u5143\u7d20\u5f53\u524d\u6837\u5f0f\u7684\u573a\u666f\u5c24\u5176\u6709\u7528\uff0c\u6bd4\u5982\u5728\u52a8\u6001\u66f4\u6539\u6837\u5f0f\u6216\u8fdb\u884c\u5e03\u5c40\u8ba1\u7b97\u65f6\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528HTMLELEMENT.STYLE\u5c5e\u6027<\/h2>\n<\/p>\n<p><p><code>HTMLElement.style<\/code>\u5c5e\u6027\u63d0\u4f9b\u4e86\u4e00\u79cd\u8bfb\u53d6\u548c\u4fee\u6539\u5143\u7d20\u7684\u884c\u5185\u6837\u5f0f\uff08\u5373\u901a\u8fc7<code>style<\/code>\u5c5e\u6027\u76f4\u63a5\u5b9a\u4e49\u5728\u5143\u7d20\u4e0a\u7684\u6837\u5f0f\uff09\u7684\u65b9\u6cd5\u3002\u5b83\u7684\u4fbf\u5229\u6027\u5728\u4e8e\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u5143\u7d20\u5c5e\u6027\u6765\u8bbf\u95ee\u7279\u5b9a\u7684\u6837\u5f0f\u5c5e\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u5982\u4f55\u4f7f\u7528HTMLELEMENT.STYLE<\/h3>\n<\/p>\n<p><p>\u8981\u901a\u8fc7<code>style<\/code>\u5c5e\u6027\u83b7\u53d6\u6216\u8bbe\u7f6e\u6837\u5f0f\uff0c\u9996\u5148\u9700\u8981\u83b7\u53d6\u5230\u5bf9\u5e94\u7684DOM\u5143\u7d20\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u64cd\u4f5c\u5b83\u7684<code>style<\/code>\u5c5e\u6027\u4e86\u3002\u6bd4\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">var element = document.getElementById(&quot;myElement&quot;);<\/p>\n<p>var color = element.style.color; \/\/ \u83b7\u53d6\u884c\u5185\u6837\u5f0f\u7684\u989c\u8272<\/p>\n<p>element.style.width = &quot;100px&quot;; \/\/ \u8bbe\u7f6e\u5143\u7d20\u7684\u5bbd\u5ea6\u4e3a100px<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>HTMLELEMENT.STYLE\u7684\u5c40\u9650\u6027<\/h3>\n<\/p>\n<p><p>\u5c3d\u7ba1\u901a\u8fc7<code>style<\/code>\u5c5e\u6027\u53ef\u4ee5\u76f4\u63a5\u64cd\u4f5c\u5143\u7d20\u7684\u884c\u5185\u6837\u5f0f\uff0c<strong>\u4f46\u5b83\u7684\u4e3b\u8981\u5c40\u9650\u6027\u5728\u4e8e\u65e0\u6cd5\u83b7\u53d6\u90a3\u4e9b\u901a\u8fc7\u5916\u90e8CSS\u6587\u4ef6\u6216\u5185\u90e8\u6837\u5f0f\u5757\u5b9a\u4e49\u7684\u6837\u5f0f<\/strong>\u3002\u56e0\u6b64\uff0c\u4ec5\u5728\u5904\u7406\u884c\u5185\u6837\u5f0f\u65f6\u63a8\u8350\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528ELEMENT.CURRENTSTYLE\u5c5e\u6027<\/h2>\n<\/p>\n<p><p><code>element.currentStyle<\/code>\u5c5e\u6027\u662f\u4e00\u4e2a\u975e\u6807\u51c6\u65b9\u6cd5\uff0c\u4e3b\u8981\u5b58\u5728\u4e8e\u65e9\u671f\u7684Internet Explorer\u6d4f\u89c8\u5668\u4e2d\u3002\u5b83\u7c7b\u4f3c\u4e8e<code>window.getComputedStyle()<\/code>\u65b9\u6cd5\uff0c\u4f46\u73b0\u5df2\u4e0d\u63a8\u8350\u4f7f\u7528\uff0c\u4e14\u5728\u73b0\u4ee3\u6d4f\u89c8\u5668\u4e2d\u4e0d\u652f\u6301\u3002<\/p>\n<\/p>\n<p><h3>ELEMENT.CURRENTSTYLE\u7684\u4f7f\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u5728\u65e9\u671f\u7684IE\u6d4f\u89c8\u5668\u4e2d\uff0c\u5982\u679c\u9700\u8981\u83b7\u53d6\u5143\u7d20\u7684\u8ba1\u7b97\u6837\u5f0f\uff0c\u53ef\u80fd\u4f1a\u4f7f\u7528<code>element.currentStyle<\/code>\u3002\u7136\u800c\uff0c\u8003\u8651\u5230\u517c\u5bb9\u6027\u548c\u6807\u51c6\u5316\u7684\u9700\u8981\uff0c<strong>\u73b0\u5728\u51e0\u4e4e\u6ca1\u6709\u573a\u666f\u63a8\u8350\u4f7f\u7528<code>element.currentStyle<\/code><\/strong>\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">var element = document.getElementById(&quot;myElement&quot;);<\/p>\n<p>var style = element.currentStyle ? element.currentStyle : window.getComputedStyle(element, null);<\/p>\n<p>console.log(style.width); \/\/ \u5c1d\u8bd5\u517c\u5bb9IE\u7684\u65b9\u5f0f\u83b7\u53d6\u5143\u7d20\u7684\u5bbd\u5ea6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5173\u4e8eELEMENT.CURRENTSTYLE\u7684\u517c\u5bb9\u6027<\/h3>\n<\/p>\n<p><p>\u9274\u4e8e<code>element.currentStyle<\/code>\u4ec5\u5728\u65e7\u7248IE\u6d4f\u89c8\u5668\u4e2d\u652f\u6301\uff0c\u4ee5\u53ca\u73b0\u4ee3\u5f00\u53d1\u4e2d\u7684\u6807\u51c6\u5316\u8981\u6c42\uff0c\u5f00\u53d1\u8005\u5e94\u907f\u514d\u4f7f\u7528\u6b64\u5c5e\u6027\uff0c\u800c\u662f<strong>\u4f18\u5148\u9009\u62e9<code>window.getComputedStyle()<\/code>\u65b9\u6cd5\u6765\u83b7\u53d6\u5143\u7d20\u7684\u6837\u5f0f<\/strong>\uff0c\u786e\u4fdd\u517c\u5bb9\u6027\u548c\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<p><h2>\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u5728\u65e5\u5e38\u7684Web\u5f00\u53d1\u4e2d\uff0c\u52a8\u6001\u83b7\u53d6\u548c\u4fee\u6539\u5143\u7d20\u6837\u5f0f\u662f\u4e00\u9879\u57fa\u672c\u800c\u91cd\u8981\u7684\u6280\u80fd\u3002\u867d\u7136\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u76ee\u7684\uff0c\u4f46\u8003\u8651\u5230\u51c6\u786e\u6027\u548c\u517c\u5bb9\u6027\uff0c<strong>\u5f3a\u70c8\u63a8\u8350\u4f7f\u7528<code>window.getComputedStyle()<\/code>\u65b9\u6cd5\u6765\u83b7\u53d6\u5143\u7d20\u7684\u8ba1\u7b97\u6837\u5f0f<\/strong>\u3002\u540c\u65f6\uff0c\u5f53\u9700\u8981\u64cd\u4f5c\u7279\u5b9a\u7684\u884c\u5185\u6837\u5f0f\u65f6\uff0c\u53ef\u4ee5\u5229\u7528<code>HTMLElement.style<\/code>\u5c5e\u6027\u8fdb\u884c\u5feb\u901f\u8bbf\u95ee\u548c\u4fee\u6539\u3002\u800c\u5bf9\u4e8e\u7edd\u5927\u591a\u6570\u73b0\u4ee3Web\u5f00\u53d1\u573a\u666f\u6765\u8bf4\uff0c\u907f\u514d\u4f7f\u7528\u5df2\u88ab\u6dd8\u6c70\u7684<code>element.currentStyle<\/code>\u5c5e\u6027\uff0c\u4ee5\u786e\u4fdd\u4ee3\u7801\u7684\u6700\u4f73\u5b9e\u8df5\u548c\u6807\u51c6\u9075\u5faa\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<ol>\n<li><strong>\u5982\u4f55\u4f7f\u7528JavaScript\u83b7\u53d6\u5143\u7d20\u7684\u6837\u5f0f\uff1f<\/strong><br \/>\n\u8981\u4f7f\u7528JavaScript\u83b7\u53d6\u5143\u7d20\u7684\u6837\u5f0f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>window.getComputedStyle()<\/code>\u65b9\u6cd5\u6765\u83b7\u53d6\u5143\u7d20\u7684\u8ba1\u7b97\u6837\u5f0f\u3002\u8fd9\u4e2a\u65b9\u6cd5\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u8981\u83b7\u53d6\u6837\u5f0f\u7684\u5143\u7d20\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u4e00\u4e2a\u4f2a\u5143\u7d20\uff08\u5982<code>:before<\/code>\u6216<code>:after<\/code>\uff09\uff0c\u5982\u679c\u4e0d\u9700\u8981\u83b7\u53d6\u4f2a\u5143\u7d20\u7684\u6837\u5f0f\uff0c\u53ef\u4ee5\u5ffd\u7565\u7b2c\u4e8c\u4e2a\u53c2\u6570\u3002<\/li>\n<\/ol>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u8981\u83b7\u53d6id\u4e3a&quot;myElement&quot;\u7684\u5143\u7d20\u7684\u80cc\u666f\u989c\u8272\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code>var element = document.getElementById(&quot;myElement&quot;);\nvar styles = window.getComputedStyle(element);\nvar backgroundColor = styles.backgroundColor;\nconsole.log(backgroundColor);\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u6253\u5370\u8be5\u5143\u7d20\u7684\u80cc\u666f\u989c\u8272\u3002<\/p>\n<ol start=\"2\">\n<li><strong>\u5982\u4f55\u4f7f\u7528JavaScript\u4fee\u6539\u5143\u7d20\u7684\u6837\u5f0f\uff1f<\/strong><br \/>\n\u8981\u4f7f\u7528JavaScript\u4fee\u6539\u5143\u7d20\u7684\u6837\u5f0f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5143\u7d20\u7684<code>style<\/code>\u5c5e\u6027\u3002<code>style<\/code>\u5c5e\u6027\u662f\u4e00\u4e2a\u5bf9\u8c61\uff0c\u5305\u542b\u4e86\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539\u7684\u6240\u6709\u6837\u5f0f\u5c5e\u6027\u3002<\/li>\n<\/ol>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u8981\u5c06id\u4e3a&quot;myElement&quot;\u7684\u5143\u7d20\u7684\u80cc\u666f\u989c\u8272\u4fee\u6539\u4e3a\u7ea2\u8272\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code>var element = document.getElementById(&quot;myElement&quot;);\nelement.style.backgroundColor = &quot;red&quot;;\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u628a\u8be5\u5143\u7d20\u7684\u80cc\u666f\u989c\u8272\u4fee\u6539\u4e3a\u7ea2\u8272\u3002<\/p>\n<ol start=\"3\">\n<li><strong>\u5982\u4f55\u4f7f\u7528JavaScript\u5207\u6362\u5143\u7d20\u7684\u6837\u5f0f\uff1f<\/strong><br \/>\n\u8981\u4f7f\u7528JavaScript\u5207\u6362\u5143\u7d20\u7684\u6837\u5f0f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5143\u7d20\u7684<code>classList<\/code>\u5c5e\u6027\u3002<code>classList<\/code>\u5c5e\u6027\u662f\u4e00\u4e2aDOMTokenList\u5bf9\u8c61\uff0c\u5b83\u8868\u793a\u4e86\u5143\u7d20\u7684\u7c7b\u540d\u5217\u8868\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>add()<\/code>\u65b9\u6cd5\u5411\u5143\u7d20\u6dfb\u52a0\u7c7b\u540d\uff0c\u4f7f\u7528<code>remove()<\/code>\u65b9\u6cd5\u4ece\u5143\u7d20\u5220\u9664\u7c7b\u540d\uff0c\u4f7f\u7528<code>toggle()<\/code>\u65b9\u6cd5\u5728\u5143\u7d20\u4e0a\u5207\u6362\u7c7b\u540d\u3002<\/li>\n<\/ol>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u8981\u5207\u6362id\u4e3a&quot;myElement&quot;\u7684\u5143\u7d20\u7684\u7c7b\u540d\u4e3a&quot;active&quot;\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code>var element = document.getElementById(&quot;myElement&quot;);\nelement.classList.toggle(&quot;active&quot;);\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u5728\u5143\u7d20\u7684\u7c7b\u540d\u5217\u8868\u4e2d\u6dfb\u52a0\u6216\u5220\u9664&quot;active&quot;\u7c7b\u540d\uff0c\u5b9e\u73b0\u6837\u5f0f\u7684\u5207\u6362\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Web\u5f00\u53d1\u4e2d\uff0c\u901a\u8fc7JavaScript\u83b7\u53d6\u5143\u7d20\u6837\u5f0f\u662f\u4e00\u9879\u5e38\u89c1\u4e14\u91cd\u8981\u7684\u64cd\u4f5c\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u52a8\u6001\u8bfb\u53d6\u548c\u4fee\u6539\u9875\u9762\u5143\u7d20 [&hellip;]","protected":false},"author":3,"featured_media":169437,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/169418"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=169418"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/169418\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/169437"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=169418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=169418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=169418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}