{"id":276141,"date":"2024-05-16T14:45:34","date_gmt":"2024-05-16T06:45:34","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/276141.html"},"modified":"2024-05-16T14:45:41","modified_gmt":"2024-05-16T06:45:41","slug":"javascript-%e7%bc%96%e7%a8%8b%e9%a1%b9%e7%9b%ae%e4%b8%ad%e6%80%8e%e4%b9%88%e4%bd%bf%e7%94%a8-replace-%e5%ae%9e%e7%8e%b0%e5%85%a8%e5%b1%80%e6%9b%bf%e6%8d%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/276141.html","title":{"rendered":"JavaScript \u7f16\u7a0b\u9879\u76ee\u4e2d\u600e\u4e48\u4f7f\u7528 replace \u5b9e\u73b0\u5168\u5c40\u66ff\u6362"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200719\/af44e6e9-392a-44be-939b-b5631d752935.webp\" alt=\"JavaScript \u7f16\u7a0b\u9879\u76ee\u4e2d\u600e\u4e48\u4f7f\u7528 replace \u5b9e\u73b0\u5168\u5c40\u66ff\u6362\" \/><\/p>\n<p><p>\u5728JavaScript\u7f16\u7a0b\u9879\u76ee\u4e2d\uff0c\u5b9e\u73b0\u5168\u5c40\u66ff\u6362\u7684\u5e38\u89c1\u65b9\u6cd5\u662f\u4f7f\u7528\u5b57\u7b26\u4e32\u7684 <code>replace()<\/code> \u65b9\u6cd5\u7ed3\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<strong>\u5177\u4f53\u800c\u8a00\u3001\u4f7f\u7528\u5e26\u6709\u5168\u5c40\u6807\u5fd7\uff08<code>g<\/code>\uff09\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u4f5c\u4e3a <code>replace()<\/code> \u65b9\u6cd5\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u3001\u800c\u5c06\u66ff\u6362\u5185\u5bb9\u4f5c\u4e3a\u7b2c\u4e8c\u4e2a\u53c2\u6570<\/strong>\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u53ef\u4ee5\u5b9e\u73b0\u7b80\u5355\u7684\u5168\u5c40\u5b57\u7b26\u66ff\u6362\uff0c\u8fd8\u80fd\u5904\u7406\u66f4\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\u548c\u66ff\u6362\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u5c55\u5f00\u8be6\u7ec6\u63cf\u8ff0\uff1a<code>replace()<\/code> \u65b9\u6cd5\u5728\u4e0d\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u65f6\uff0c\u4ec5\u4f1a\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u7b2c\u4e00\u6b21\u51fa\u73b0\u7684\u5339\u914d\u9879\u3002\u8981\u5b9e\u73b0\u5168\u5c40\u66ff\u6362\uff0c\u5c31\u5fc5\u987b\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u529b\u91cf\u3002\u901a\u8fc7\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u540e\u6dfb\u52a0 <code>g<\/code> \u6807\u5fd7\uff0c<code>replace()<\/code> \u65b9\u6cd5\u4fbf\u80fd\u904d\u5386\u6574\u4e2a\u5b57\u7b26\u4e32\uff0c\u5339\u914d\u5e76\u66ff\u6362\u6240\u6709\u7b26\u5408\u6761\u4ef6\u7684\u90e8\u5206\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u7075\u6d3b\u6027\u548c\u5f3a\u5927\u529f\u80fd\u4f7f\u5176\u6210\u4e3a\u5728JavaScript\u9879\u76ee\u4e2d\u5b9e\u73b0\u6587\u672c\u5904\u7406\u548c\u6570\u636e\u6e05\u6d17\u65f6\u7684\u4e0d\u4e8c\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u7406\u89e3 REPLACE() \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>replace()<\/code> \u662fJavaScript\u4e2d\u7684\u4e00\u4e2a\u5b57\u7b26\u4e32\u65b9\u6cd5\uff0c\u7528\u4e8e\u5728\u5b57\u7b26\u4e32\u4e2d\u67e5\u627e\u5339\u914d\u9879\u5e76\u8fdb\u884c\u66ff\u6362\u3002\u5b83\u53ef\u4ee5\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff1a\u9700\u8981\u67e5\u627e\u7684\u503c\uff08\u5b57\u7b26\u4e32\u6216\u6b63\u5219\u8868\u8fbe\u5f0f\uff09\u548c\u7528\u4e8e\u66ff\u6362\u7684\u503c\uff08\u5b57\u7b26\u4e32\u6216\u51fd\u6570\uff09\u3002\u5f53\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u5b57\u7b26\u4e32\u65f6\uff0c\u9ed8\u8ba4\u53ea\u4f1a\u66ff\u6362\u7b2c\u4e00\u4e2a\u5339\u914d\u9879\u3002\u800c\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u5e76\u7ed3\u5408 <code>g<\/code> \u5168\u5c40\u6807\u5fd7\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5168\u5c40\u641c\u7d22\u548c\u66ff\u6362\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5168\u5c40\u6807\u5fd7\uff08G\uff09<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5904\u7406\u5b57\u7b26\u4e32\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u7ed3\u5408 <code>replace()<\/code> \u65b9\u6cd5\u4f7f\u7528\u65f6\uff0c\u6dfb\u52a0\u5168\u5c40\u6807\u5fd7\uff08<code>g<\/code>\uff09\u540e\uff0c\u4f1a\u641c\u7d22\u5e76\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u7684\u5339\u914d\u9879\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u7b2c\u4e00\u4e2a\u5339\u914d\u9879\u3002\u4f8b\u5982\uff0c\u8981\u5c06\u6587\u672c\u4e2d\u6240\u6709\u7684&quot;apple&quot;\u66ff\u6362\u4e3a&quot;orange&quot;\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">let text = &#039;Apple juice is better than apple pie.&#039;;<\/p>\n<p>let newText = text.replace(\/apple\/gi, &#039;orange&#039;);<\/p>\n<p>console.log(newText); \/\/ &quot;orange juice is better than orange pie.&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>gi<\/code>\u662f\u4e24\u4e2a\u6807\u5fd7\u7684\u7ec4\u5408\uff0c\u5176\u4e2d<code>g<\/code>\u4ee3\u8868\u5168\u5c40\uff0c<code>i<\/code>\u4ee3\u8868\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff0c\u4f7f\u5f97\u66ff\u6362\u64cd\u4f5c\u66f4\u52a0\u7075\u6d3b\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u9ad8\u7ea7\u66ff\u6362\u6280\u5de7<\/h3>\n<\/p>\n<p><h4>1. \u5229\u7528\u51fd\u6570\u8fdb\u884c\u52a8\u6001\u66ff\u6362<\/h4>\n<\/p>\n<p><p><code>replace()<\/code> \u65b9\u6cd5\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8fd8\u53ef\u4ee5\u662f\u4e00\u4e2a\u51fd\u6570\uff0c\u5141\u8bb8\u5728\u66ff\u6362\u65f6\u8fdb\u884c\u66f4\u591a\u903b\u8f91\u5904\u7406\uff0c\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u7075\u6d3b\u6027\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728\u51fd\u6570\u4e2d\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u6765\u51b3\u5b9a\u66ff\u6362\u7684\u5185\u5bb9\uff0c\u6216\u8005\u6839\u636e\u5339\u914d\u5230\u7684\u5185\u5bb9\u52a8\u6001\u6784\u9020\u66ff\u6362\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h4>2. \u7279\u6b8a\u66ff\u6362\u6a21\u5f0f<\/h4>\n<\/p>\n<p><p>\u5728\u590d\u6742\u7684\u5e94\u7528\u573a\u666f\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u7279\u5b9a\u7684\u6a21\u5f0f\u6216\u6761\u4ef6\u8fdb\u884c\u66ff\u6362\u3002\u6bd4\u5982\uff0c\u9700\u8981\u6839\u636e\u5339\u914d\u9879\u524d\u540e\u7684\u5185\u5bb9\u6765\u8c03\u6574\u66ff\u6362\u903b\u8f91\uff0c\u6216\u8005\u5728\u66ff\u6362\u65f6\u4fdd\u7559\u90e8\u5206\u539f\u59cb\u5339\u914d\u5185\u5bb9\uff0c\u8fd9\u65f6\u53ef\u4ee5\u901a\u8fc7\u62ec\u53f7\u6355\u83b7\u7279\u5b9a\u90e8\u5206\uff0c\u5e76\u5728\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u901a\u8fc7 <code>$1<\/code>\u3001<code>$2<\/code> \u7b49\u5f15\u7528\u8fd9\u4e9b\u7279\u5b9a\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6848\u4f8b\u5b66\u4e60: \u5b9e\u73b0\u590d\u6742\u6587\u672c\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u5177\u4f53\u7684\u7f16\u7a0b\u6848\u4f8b\u6765\u6df1\u5165\u7406\u89e3 <code>replace()<\/code> \u65b9\u6cd5\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u7684\u5e94\u7528\u3002\u5982\u5904\u7406\u7528\u6237\u8f93\u5165\u3001\u6570\u636e\u6e05\u6d17\u3001\u65e5\u5fd7\u6587\u4ef6\u5206\u6790\u7b49\uff0c\u8fd9\u4e9b\u6848\u4f8b\u80fd\u591f\u5c55\u73b0 <code>replace()<\/code> \u65b9\u6cd5\u7ed3\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u89e3\u51b3\u5b9e\u9645\u95ee\u9898\u7684\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u6700\u4f73\u5b9e\u8df5\u548c\u6027\u80fd\u8003\u8651<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528 <code>replace()<\/code> \u65b9\u6cd5\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u5168\u5c40\u66ff\u6362\u65f6\uff0c\u8fd8\u9700\u6ce8\u610f\u4ee3\u7801\u7684\u6548\u7387\u548c\u6027\u80fd\u3002\u5bf9\u4e8e\u5927\u578b\u6587\u672c\u6216\u9ad8\u9891\u8c03\u7528\u7684\u573a\u666f\uff0c\u5e94\u5f53\u8003\u8651\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u590d\u6742\u5ea6\u3001\u5339\u914d\u7b56\u7565\u7684\u9009\u62e9\u4ee5\u53ca\u66ff\u6362\u903b\u8f91\u7684\u4f18\u5316\u7b49\u56e0\u7d20\u3002\u5408\u7406\u8bbe\u8ba1\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u907f\u514d\u8fc7\u5ea6\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\uff0c\u80fd\u591f\u663e\u8457\u63d0\u9ad8\u4ee3\u7801\u7684\u6267\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>\u603b\u4e4b\uff0c\u901a\u8fc7\u719f\u7ec3\u638c\u63e1 <code>replace()<\/code> \u65b9\u6cd5\u53ca\u5176\u4e0e\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u7ed3\u5408\u4f7f\u7528\uff0c\u53ef\u4ee5\u6709\u6548\u89e3\u51b3JavaScript\u9879\u76ee\u4e2d\u7684\u5168\u5c40\u6587\u672c\u66ff\u6362\u9700\u6c42\uff0c\u65e0\u8bba\u662f\u7b80\u5355\u7684\u5b57\u7b26\u66ff\u6362\u8fd8\u662f\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\u548c\u52a8\u6001\u5185\u5bb9\u66ff\u6362\uff0c\u90fd\u80fd\u591f\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u5728 JavaScript \u7f16\u7a0b\u9879\u76ee\u4e2d\u4f7f\u7528 replace \u65b9\u6cd5\u8fdb\u884c\u5168\u5c40\u66ff\u6362\uff1f<\/strong><\/p>\n<p>\u5728 JavaScript \u7f16\u7a0b\u9879\u76ee\u4e2d\uff0creplace \u65b9\u6cd5\u662f\u7528\u4e8e\u5b57\u7b26\u4e32\u66ff\u6362\u64cd\u4f5c\u7684\u5e38\u7528\u65b9\u6cd5\u4e4b\u4e00\u3002\u8981\u5b9e\u73b0\u5168\u5c40\u66ff\u6362\uff0c\u53ef\u4ee5\u5728 replace \u65b9\u6cd5\u4e2d\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u5e76\u5c06\u5176\u4e2d\u7684 g \u6807\u5fd7\u8bbe\u7f6e\u4e3a true\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u5339\u914d\u5e76\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u7b26\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u90e8\u5206\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u7b2c\u4e00\u4e2a\u5339\u914d\u9879\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-javascript\">var str = &quot;Hello World! Hello JavaScript!&quot;;\nvar replacedStr = str.replace(\/Hello\/g, &quot;Hi&quot;);\nconsole.log(replacedStr);\n<\/code><\/pre>\n<p>\u8f93\u51fa\u7ed3\u679c\u4e3a\uff1a&quot;Hi World! Hi JavaScript!&quot;\u3002\u6ce8\u610f\uff0c\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u4f7f\u7528\u4e86 g \u6807\u5fd7\uff0c\u4f7f\u5f97 replace \u65b9\u6cd5\u4f1a\u66ff\u6362\u6240\u6709\u7684 &quot;Hello&quot;\u3002<\/p>\n<p><strong>2. JavaScript \u7f16\u7a0b\u9879\u76ee\u4e2d\u5982\u4f55\u4f7f\u7528 replace \u65b9\u6cd5\u8fdb\u884c\u5927\u5c0f\u5199\u4e0d\u654f\u611f\u7684\u5168\u5c40\u66ff\u6362\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u5e0c\u671b\u5728 JavaScript \u7f16\u7a0b\u9879\u76ee\u4e2d\u8fdb\u884c\u5927\u5c0f\u5199\u4e0d\u654f\u611f\u7684\u5168\u5c40\u66ff\u6362\uff0c\u53ef\u4ee5\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u4f7f\u7528 i \u6807\u5fd7\u3002\u8fd9\u6837\uff0creplace \u65b9\u6cd5\u4f1a\u5ffd\u7565\u5b57\u7b26\u4e32\u4e2d\u7684\u5927\u5c0f\u5199\u5dee\u5f02\uff0c\u5e76\u8fdb\u884c\u5168\u5c40\u66ff\u6362\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-javascript\">var str = &quot;Hello World! hello JavaScript!&quot;;\nvar replacedStr = str.replace(\/hello\/gi, &quot;Hi&quot;);\nconsole.log(replacedStr);\n<\/code><\/pre>\n<p>\u8f93\u51fa\u7ed3\u679c\u4e3a\uff1a&quot;Hi World! Hi JavaScript!&quot;\u3002\u6ce8\u610f\uff0c\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u4f7f\u7528\u4e86 i \u6807\u5fd7\uff0c\u4f7f\u5f97 replace \u65b9\u6cd5\u4f1a\u5ffd\u7565\u5927\u5c0f\u5199\uff0c\u66ff\u6362\u6240\u6709\u7684 &quot;hello&quot;\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5728 JavaScript \u7f16\u7a0b\u9879\u76ee\u4e2d\u4f7f\u7528 replace \u65b9\u6cd5\u5b9e\u73b0\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u5168\u5c40\u66ff\u6362\uff1f<\/strong><\/p>\n<p>\u5728 JavaScript \u7f16\u7a0b\u9879\u76ee\u4e2d\uff0creplace \u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5206\u7ec4\u6355\u83b7\u4ee5\u53ca\u4f7f\u7528\u51fd\u6570\u4f5c\u4e3a\u66ff\u6362\u53c2\u6570\uff0c\u5b9e\u73b0\u5bf9\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u5168\u5c40\u66ff\u6362\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-javascript\">var str = &quot;Hello World! Hi JavaScript!&quot;;\nvar replacedStr = str.replace(\/(Hello|Hi)\/g, function(match) {\n  if (match === &quot;Hello&quot;) {\n    return &quot;Hola&quot;;\n  } else if (match === &quot;Hi&quot;) {\n    return &quot;Salut&quot;;\n  }\n});\nconsole.log(replacedStr);\n<\/code><\/pre>\n<p>\u8f93\u51fa\u7ed3\u679c\u4e3a\uff1a&quot;Hola World! Salut JavaScript!&quot;\u3002\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u4f7f\u7528\u4e86\u5206\u7ec4\u6355\u83b7\uff0c\u7136\u540e\u901a\u8fc7\u51fd\u6570\u6765\u5904\u7406\u4e0d\u540c\u7684\u5339\u914d\u5b57\u7b26\u4e32\uff0c\u5c06\u5176\u66ff\u6362\u4e3a\u4e0d\u540c\u7684\u503c\u3002\u56e0\u6b64\uff0c&quot;Hello&quot; \u88ab\u66ff\u6362\u4e3a &quot;Hola&quot;\uff0c&quot;Hi&quot; \u88ab\u66ff\u6362\u4e3a &quot;Salut&quot;\u3002\u8fd9\u6837\u5c31\u5b9e\u73b0\u4e86\u5bf9\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u5168\u5c40\u66ff\u6362\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728JavaScript\u7f16\u7a0b\u9879\u76ee\u4e2d\uff0c\u5b9e\u73b0\u5168\u5c40\u66ff\u6362\u7684\u5e38\u89c1\u65b9\u6cd5\u662f\u4f7f\u7528\u5b57\u7b26\u4e32\u7684 replace() \u65b9\u6cd5\u7ed3\u5408\u6b63\u5219\u8868\u8fbe\u5f0f [&hellip;]","protected":false},"author":3,"featured_media":276150,"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\/276141"}],"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=276141"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/276141\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/276150"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=276141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=276141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=276141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}