{"id":167806,"date":"2024-05-08T16:10:20","date_gmt":"2024-05-08T08:10:20","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/167806.html"},"modified":"2024-05-08T16:10:24","modified_gmt":"2024-05-08T08:10:24","slug":"javascript-%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\/167806.html","title":{"rendered":"JavaScript \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\/27033818\/31ba0208-ffd8-4fd8-961a-e7fa309b81f5.webp\" alt=\"JavaScript \u4e2d\u600e\u4e48\u4f7f\u7528 replace \u5b9e\u73b0\u5168\u5c40\u66ff\u6362\" \/><\/p>\n<p><p>\u5728JavaScript\u4e2d\uff0c\u8981\u5b9e\u73b0\u5168\u5c40\u66ff\u6362\u7684\u529f\u80fd\uff0c<strong>\u53ef\u4ee5\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u914d\u5408\u5b57\u7b26\u4e32\u7684replace\u65b9\u6cd5\u3001\u4f7f\u7528\u5168\u5c40\u641c\u7d22\u6807\u5fd7g\u3001\u4ee5\u53ca\u6784\u9020\u51fd\u6570RegExp\u6765\u5b9e\u73b0<\/strong>\u3002\u5f53\u6211\u4eec\u9700\u8981\u5728\u5b57\u7b26\u4e32\u4e2d\u627e\u5230\u6240\u6709\u5339\u914d\u7684\u5b50\u4e32\u5e76\u66ff\u6362\u5b83\u4eec\u65f6\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u914d\u5408g\u6807\u5fd7\u662f\u6700\u76f4\u89c2\u4e5f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u8be6\u7ec6\u5c55\u5f00\uff1a<strong>\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u914d\u5408\u5b57\u7b26\u4e32\u7684replace\u65b9\u6cd5\u8fdb\u884c\u5168\u5c40\u66ff\u6362<\/strong> \u662f\u6700\u5e38\u89c1\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u5728JavaScript\u4e2d\uff0creplace\u65b9\u6cd5\u53ef\u4ee5\u63a5\u53d7\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u4f5c\u4e3a\u5176\u7b2c\u4e00\u4e2a\u53c2\u6570\u3002\u5f53\u6b63\u5219\u8868\u8fbe\u5f0f\u540e\u9762\u52a0\u4e0ag\u6807\u5fd7\u65f6\uff0c\u8868\u793a\u8fdb\u884c\u5168\u5c40\u641c\u7d22\uff0c\u4f1a\u5bfb\u627e\u6240\u6709\u5339\u914d\u800c\u4e0d\u662f\u505c\u5728\u7b2c\u4e00\u4e2a\u5339\u914d\u5904\u3002\u4f8b\u5982\uff0c\u8981\u5c06\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u7684&quot;apple&quot;\u66ff\u6362\u4e3a&quot;orange&quot;\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u4ee3\u7801\uff1a<code>let newText = originalText.replace(\/apple\/g, &#039;orange&#039;);<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u9700\u8981\u989d\u5916\u7684\u5faa\u73af\u6216\u9012\u5f52\u8c03\u7528\uff0c\u4ee3\u7801\u7b80\u6d01\u9ad8\u6548\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u548creplace\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>JavaScript \u63d0\u4f9b\u7684 <code>String.prototype.replace()<\/code> \u65b9\u6cd5\u53ef\u4ee5\u5728\u5b57\u7b26\u4e32\u4e2d\u7528\u4e00\u4e9b\u5b57\u7b26\u66ff\u6362\u53e6\u4e00\u4e9b\u5b57\u7b26\uff0c\u6216\u8005\u66ff\u6362\u4e00\u4e2a\u4e0e\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u7684\u5b50\u4e32\u3002\u5f53\u60f3\u8981\u5168\u5c40\u66ff\u6362\u5b57\u7b26\u4e32\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u91c7\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5e76\u52a0\u4e0a <code>g<\/code> \u6807\u5fd7\u3002<\/p>\n<\/p>\n<p><p><strong>\u7b2c\u4e00\u4e2a\u53c2\u6570\u4e3a\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u5e76\u4f7f\u7528 g \u6807\u5fd7<\/strong> \u8868\u793a\u5168\u5c40\u5339\u914d\u3002\u65e0\u8bba\u76ee\u6807\u5b57\u7b26\u4e32\u6709\u591a\u957f\uff0c\u6240\u6709\u5339\u914d\u5230\u7684\u6a21\u5f0f\u90fd\u4f1a\u88ab\u66ff\u6362\u3002\u4f8b\u5982\uff0c<code>&#039;hello world&#039;.replace(\/o\/g, &#039;a&#039;)<\/code> \u5c06\u8fd4\u56de <code>&#039;hella warld&#039;<\/code>\uff0c\u5373\u6240\u6709\u7684 &#039;o&#039; \u90fd\u88ab &#039;a&#039; \u66ff\u6362\u4e86\u3002<\/p>\n<\/p>\n<p><p><strong>\u53e6\u4e00\u91cd\u8981\u89c2\u70b9\u662f\u53ef\u4ee5\u5728\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u7279\u6b8a\u66ff\u6362\u6a21\u5f0f<\/strong>\u3002\u4f8b\u5982\uff0c<code>$&amp;<\/code> \u8868\u793a\u5339\u914d\u5b57\u7b26\u4e32\uff0c<code>$<\/code>&#039; \u8868\u793a\u5339\u914d\u9879\u540e\u7684\u5b57\u7b26\u4e32\u3002\u8fd9\u53ef\u4ee5\u7528\u4e8e\u590d\u6742\u7684\u66ff\u6362\u903b\u8f91\u4e2d\uff0c\u5982\u6dfb\u52a0\u6807\u7b7e\u6216\u5904\u7406\u6a21\u677f\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u6784\u9020\u51fd\u6570RegExp\u5b9e\u73b0\u52a8\u6001\u66ff\u6362<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u52a8\u6001\u6784\u5efa\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u6bd4\u5982\u57fa\u4e8e\u7528\u6237\u7684\u8f93\u5165\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528 <code>RegExp<\/code> \u6784\u9020\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><p><strong>\u901a\u8fc7\u52a8\u6001\u521b\u5efa\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362<\/strong>\uff0c\u4f60\u53ef\u4ee5\u6784\u5efa\u66f4\u7075\u6d3b\u7684\u66ff\u6362\u903b\u8f91\u3002\u6bd4\u5982\uff0c<code>let regex = new RegExp(pattern, &#039;g&#039;);<\/code> \u751f\u6210\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u5bf9\u8c61\uff0c\u7136\u540e\u4f20\u9012\u7ed9 <code>replace<\/code> \u65b9\u6cd5\uff1a<code>text.replace(regex, replacement);<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u7279\u522b\u9002\u7528\u4e8e\u90a3\u4e9b\u6a21\u5f0f\u4e0d\u662f\u56fa\u5b9a\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u5728<strong>\u5229\u7528\u8fd9\u79cd\u65b9\u6cd5\u65f6\uff0c\u9700\u8981\u5bf9\u7279\u6b8a\u5b57\u7b26\u8fdb\u884c\u8f6c\u4e49<\/strong>\u3002\u56e0\u4e3a\u76f4\u63a5\u4ece\u5b57\u7b26\u4e32\u751f\u6210\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u7279\u6b8a\u5b57\u7b26\u5982\u70b9(.)\u6216\u661f\u53f7(*)\u7b49\u5c06\u88ab\u89c6\u4e3a\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4e00\u90e8\u5206\uff0c\u4ece\u800c\u53ef\u80fd\u5bfc\u81f4\u610f\u5916\u7684\u5339\u914d\u7ed3\u679c\u3002\u56e0\u6b64\uff0c\u5bf9\u4e8e\u90a3\u4e9b\u53ef\u80fd\u51fa\u73b0\u5728\u52a8\u6001\u751f\u6210\u7684\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u6b8a\u5b57\u7b26\uff0c\u9700\u8981\u63d0\u524d\u8fdb\u884c\u8f6c\u4e49\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u9ad8\u7ea7\u66ff\u6362\u6280\u5de7<\/h3>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u7279\u6b8a\u573a\u5408\uff0c\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u66ff\u6362\u53ef\u80fd\u4e0d\u8db3\u4ee5\u6ee1\u8db3\u9700\u6c42\u3002JavaScript \u7684 <code>replace<\/code> \u65b9\u6cd5\u8fd8\u652f\u6301\u5c06\u66ff\u6362\u53c2\u6570\u8bbe\u7f6e\u4e3a\u51fd\u6570\uff0c\u4e3a\u5b57\u7b26\u4e32\u66ff\u6362\u5e26\u6765\u66f4\u5927\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u51fd\u6570\u4f5c\u4e3a\u7b2c\u4e8c\u4e2a\u53c2\u6570<\/strong>\uff0c\u6bcf\u6b21\u5339\u914d\u5230\u4e4b\u540e\u90fd\u4f1a\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\uff0c\u51fd\u6570\u7684\u8fd4\u56de\u503c\u5c06\u4f5c\u4e3a\u66ff\u6362\u5b57\u7b26\u4e32\u3002\u8fd9\u79cd\u65b9\u6cd5\u5141\u8bb8\u4f60\u6839\u636e\u5339\u914d\u5230\u7684\u5185\u5bb9\u52a8\u6001\u51b3\u5b9a\u66ff\u6362\u5185\u5bb9\uff0c\u6781\u5927\u5730\u6269\u5c55\u4e86\u66ff\u6362\u7684\u53ef\u80fd\u6027\u3002<\/p>\n<\/p>\n<p><p>\u5728\u51fd\u6570\u4e2d\uff0c<strong>\u53ef\u4ee5\u8bbf\u95ee\u5230\u5339\u914d\u5230\u7684\u5185\u5bb9\u3001\u6355\u83b7\u7ec4\u3001\u5339\u914d\u5230\u7684\u4f4d\u7f6e\u7b49\u4fe1\u606f<\/strong>\uff0c\u8ba9\u66ff\u6362\u903b\u8f91\u53ef\u4ee5\u975e\u5e38\u7cbe\u7ec6\u548c\u590d\u6742\u3002\u6bd4\u5982\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u5339\u914d\u5230\u7684\u6587\u672c\u5185\u5bb9\u7684\u4e0d\u540c\uff0c\u9009\u62e9\u4e0d\u540c\u7684\u66ff\u6362\u6587\u672c\uff0c\u6216\u662f\u57fa\u4e8e\u5339\u914d\u4f4d\u7f6e\u5bf9\u66ff\u6362\u6587\u672c\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6027\u80fd\u8003\u91cf\u548c\u5b89\u5168\u6027<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u4f46\u5728\u8fdb\u884c\u5168\u5c40\u66ff\u6362\u65f6\uff0c\u8fd8\u9700\u8981\u6ce8\u610f\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<p><p><strong>\u5728\u5904\u7406\u5927\u578b\u5b57\u7b26\u4e32\u6216\u9891\u7e41\u66ff\u6362\u64cd\u4f5c\u65f6\u8003\u8651\u6027\u80fd<\/strong>\u3002\u5168\u5c40\u66ff\u6362\u53ef\u80fd\u4f1a\u5bf9\u6027\u80fd\u4ea7\u751f\u5f71\u54cd\uff0c\u7279\u522b\u662f\u5f53\u539f\u5b57\u7b26\u4e32\u975e\u5e38\u5927\u6216\u66ff\u6362\u64cd\u4f5c\u975e\u5e38\u9891\u7e41\u65f6\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u8003\u8651\u5176\u4ed6\u7b56\u7565\uff0c\u6bd4\u5982\u5206\u6bb5\u5904\u7406\u5b57\u7b26\u4e32\u6216\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u66ff\u6362\u7b97\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>\u6ce8\u610f\u5b89\u5168\u6027\uff0c\u907f\u514d\u6b63\u5219\u8868\u8fbe\u5f0f\u62d2\u7edd\u670d\u52a1(ReDoS)\u653b\u51fb<\/strong>\u3002\u5f53\u7528\u6237\u8f93\u5165\u88ab\u7528\u6765\u6784\u9020\u6b63\u5219\u8868\u8fbe\u5f0f\u65f6\uff0c\u5e94\u8be5\u8c28\u614e\u5904\u7406\uff0c\u907f\u514d\u6784\u9020\u51fa\u53ef\u4ee5\u5f15\u8d77\u201c\u6b63\u5219\u707e\u96be\u201d\u7684\u8868\u8fbe\u5f0f\u3002\u8fd9\u79cd\u7c7b\u578b\u7684\u653b\u51fb\u4f1a\u901a\u8fc7\u7279\u6b8a\u6784\u9020\u7684\u8f93\u5165\u4f7f\u5f97\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6267\u884c\u65f6\u95f4\u5448\u6307\u6570\u7ea7\u589e\u52a0\uff0c\u4ece\u800c\u6d88\u8017\u5927\u91cf\u8d44\u6e90\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u9002\u5f53\u9009\u62e9\u66ff\u6362\u65b9\u6cd5\u548c\u6ce8\u610f\u6027\u80fd\u5b89\u5168\u95ee\u9898\uff0cJavaScript\u4e2d\u7684\u5168\u5c40\u66ff\u6362\u80fd\u591f\u5728\u591a\u79cd\u573a\u666f\u4e0b\u9ad8\u6548\u3001\u5b89\u5168\u5730\u5de5\u4f5c\u3002\u65e0\u8bba\u662f\u5904\u7406\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u66ff\u6362\uff0c\u8fd8\u662f\u5b9e\u73b0\u590d\u6742\u7684\u6587\u672c\u5904\u7406\u903b\u8f91\uff0cJavaScript\u63d0\u4f9b\u7684\u5de5\u5177\u90fd\u80fd\u591f\u6ee1\u8db3\u5f00\u53d1\u8005\u7684\u9700\u8981\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u4f7f\u7528 replace \u65b9\u6cd5\u5b9e\u73b0 JavaScript \u5b57\u7b26\u4e32\u7684\u5168\u5c40\u66ff\u6362\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f<\/strong><\/p>\n<ul>\n<li>JavaScript \u7684 replace \u65b9\u6cd5\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b9e\u73b0\u5b57\u7b26\u4e32\u7684\u5168\u5c40\u66ff\u6362\uff0c\u65e0\u9700\u5bf9\u6bcf\u4e2a\u5339\u914d\u9879\u8fdb\u884c\u5faa\u73af\u5904\u7406\u3002<\/li>\n<li>\u76f8\u6bd4\u5176\u4ed6\u66ff\u6362\u65b9\u6cd5\uff0creplace \u65b9\u6cd5\u5177\u6709\u66f4\u7b80\u6d01\u3001\u66f4\u9ad8\u6548\u7684\u8bed\u6cd5\uff0c\u53ef\u4ee5\u4e00\u6b21\u6027\u5b8c\u6210\u5168\u5c40\u66ff\u6362\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<p><strong>2. JavaScript \u7684 replace \u65b9\u6cd5\u5982\u4f55\u5b9e\u73b0\u5168\u5c40\u66ff\u6362\uff1f<\/strong><\/p>\n<ul>\n<li>\u5728\u4f7f\u7528 replace \u65b9\u6cd5\u65f6\uff0c\u53ef\u4ee5\u4f20\u9012\u4e24\u4e2a\u53c2\u6570\uff1a\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u8981\u66ff\u6362\u7684\u6587\u672c\u7684\u6a21\u5f0f\uff0c\u53ef\u4ee5\u662f\u5b57\u7b26\u4e32\u6216\u6b63\u5219\u8868\u8fbe\u5f0f\uff1b\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u8981\u66ff\u6362\u6210\u7684\u6587\u672c\u3002<\/li>\n<li>\u82e5\u8981\u5b9e\u73b0\u5168\u5c40\u66ff\u6362\uff0c\u53ef\u4ee5\u5728\u6a21\u5f0f\u4e2d\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u5e76\u5728\u6700\u540e\u52a0\u4e0a &quot;g&quot; \u4fee\u9970\u7b26\uff0c\u8868\u793a\u5168\u5c40\u5339\u914d\u3002<\/li>\n<\/ul>\n<p><strong>3. \u662f\u5426\u53ef\u4ee5\u5728 JavaScript \u7684 replace \u65b9\u6cd5\u4e2d\u4f7f\u7528\u56de\u8c03\u51fd\u6570\u8fdb\u884c\u5168\u5c40\u66ff\u6362\uff1f<\/strong><\/p>\n<ul>\n<li>\u662f\u7684\uff0cJavaScript \u7684 replace \u65b9\u6cd5\u652f\u6301\u4f20\u9012\u4e00\u4e2a\u56de\u8c03\u51fd\u6570\u4f5c\u4e3a\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff0c\u7528\u4e8e\u5728\u66ff\u6362\u8fc7\u7a0b\u4e2d\u5bf9\u6bcf\u4e2a\u5339\u914d\u9879\u8fdb\u884c\u5904\u7406\u3002<\/li>\n<li>\u5728\u56de\u8c03\u51fd\u6570\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u53c2\u6570\u6765\u83b7\u53d6\u5339\u914d\u9879\u7684\u4fe1\u606f\uff0c\u5e76\u6839\u636e\u9700\u6c42\u8fdb\u884c\u5904\u7406\u548c\u66ff\u6362\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u52a0\u7075\u6d3b\u548c\u590d\u6742\u7684\u5168\u5c40\u66ff\u6362\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u5728JavaScript\u4e2d\uff0c\u8981\u5b9e\u73b0\u5168\u5c40\u66ff\u6362\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u914d\u5408\u5b57\u7b26\u4e32\u7684replace\u65b9\u6cd5\u3001\u4f7f\u7528\u5168\u5c40\u641c\u7d22 [&hellip;]","protected":false},"author":3,"featured_media":167811,"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\/167806"}],"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=167806"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/167806\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/167811"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=167806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=167806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=167806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}