{"id":170127,"date":"2024-05-08T17:01:13","date_gmt":"2024-05-08T09:01:13","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/170127.html"},"modified":"2024-05-08T17:01:20","modified_gmt":"2024-05-08T09:01:20","slug":"javascript-%e4%bb%a3%e7%a0%81%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e6%b7%b1%e5%85%8b%e9%9a%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/170127.html","title":{"rendered":"javascript \u4ee3\u7801\u5982\u4f55\u5b9e\u73b0\u6df1\u514b\u9686"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27040714\/d93367b7-96a1-4f6a-85cd-54bcbbd5e1b8.webp\" alt=\"javascript \u4ee3\u7801\u5982\u4f55\u5b9e\u73b0\u6df1\u514b\u9686\" \/><\/p>\n<p><p>JavaScript\u4ee3\u7801\u5b9e\u73b0\u6df1\u514b\u9686\u7684\u5e38\u89c1\u65b9\u6cd5\u5305\u62ec\uff1a<strong>\u4f7f\u7528JSON.stringify\u548cJSON.parse\u3001\u4f7f\u7528\u9012\u5f52\u3001\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\uff08\u5982lodash\u7684_.cloneDeep\u65b9\u6cd5\uff09\u3001\u4f7f\u7528StructuredClone API\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u4f7f\u7528\u9012\u5f52<\/strong>\u662f\u4e00\u4e2a\u975e\u5e38\u76f4\u89c2\u548c\u7075\u6d3b\u7684\u65b9\u6cd5\uff0c\u80fd\u591f\u9002\u7528\u4e8e\u5927\u591a\u6570\u7c7b\u578b\u7684\u6df1\u514b\u9686\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u9012\u5f52\u8fdb\u884c\u6df1\u514b\u9686\u7684\u57fa\u672c\u601d\u8def\u662f\uff1a\u5bf9\u4e8e\u4f20\u5165\u7684\u5bf9\u8c61\uff0c\u904d\u5386\u5176\u6240\u6709\u5c5e\u6027\uff0c\u5982\u679c\u5c5e\u6027\u503c\u662f\u57fa\u672c\u6570\u636e\u7c7b\u578b\uff0c\u5c31\u76f4\u63a5\u590d\u5236\uff1b\u5982\u679c\u662f\u5bf9\u8c61\u6216\u6570\u7ec4\uff0c\u5219\u518d\u6b21\u8c03\u7528\u6df1\u514b\u9686\u51fd\u6570\u8fdb\u884c\u9012\u5f52\u6df1\u514b\u9686\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5982\u5faa\u73af\u5f15\u7528\u3001\u7279\u6b8a\u5bf9\u8c61\uff08\u5982Date\u3001RegExp\u5bf9\u8c61\uff09\u7b49\uff0c\u4f46\u4e5f\u8981\u6ce8\u610f\u5904\u7406\u9012\u5f52\u8c03\u7528\u7684\u6027\u80fd\u548c\u8fb9\u754c\u6761\u4ef6\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528JSON\u65b9\u6cd5<\/h2>\n<\/p>\n<p><p>JavaScript\u63d0\u4f9b\u7684<code>JSON.stringify()<\/code>\u548c<code>JSON.parse()<\/code>\u53ef\u4ee5\u5b9e\u73b0\u4e00\u4e2a\u7b80\u5355\u7684\u6df1\u514b\u9686\u3002\u9996\u5148\u5c06\u5bf9\u8c61\u5e8f\u5217\u5316\u6210\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u5c06\u8be5\u5b57\u7b26\u4e32\u89e3\u6790\u6210\u65b0\u7684\u5bf9\u8c61\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u5feb\u6377\uff0c\u4f46\u5b83\u4e5f\u6709\u660e\u663e\u7684\u5c40\u9650\u6027\uff0c\u6bd4\u5982\u65e0\u6cd5\u514b\u9686\u51fd\u6570\u3001undefined\u3001\u5faa\u73af\u5f15\u7528\u7684\u5bf9\u8c61\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u5b9e\u73b0\u4ee3\u7801\u793a\u4f8b\uff1a<\/h3>\n<\/p>\n<p><pre><code class=\"language-javascript\">function cloneDeep(obj) {<\/p>\n<p>  return JSON.parse(JSON.stringify(obj));<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5c40\u9650\u6027\u5206\u6790\uff1a<\/h3>\n<\/p>\n<ul>\n<li>\u65e0\u6cd5\u514b\u9686\u51fd\u6570\u3001undefined\u3001Symbol\u7b49\u7279\u6b8a\u7c7b\u578b\u7684\u6570\u636e\u3002<\/li>\n<li>\u5bf9\u8c61\u4e2d\u5b58\u5728\u5faa\u73af\u5f15\u7528\u65f6\u4f1a\u629b\u51fa\u9519\u8bef\u3002<\/li>\n<li>\u65e0\u6cd5\u6b63\u786e\u5904\u7406Date\u3001RegExp\u7b49\u7279\u6b8a\u5bf9\u8c61\uff0c\u8fd9\u4e9b\u5bf9\u8c61\u4f1a\u88ab\u8f6c\u6362\u6210\u5b57\u7b26\u4e32\u6216\u7a7a\u5bf9\u8c61\u3002<\/li>\n<\/ul>\n<p><h2>\u4e8c\u3001\u9012\u5f52\u65b9\u6cd5\u5b9e\u73b0\u6df1\u514b\u9686<\/h2>\n<\/p>\n<p><p>\u4f7f\u7528\u9012\u5f52\u65b9\u6cd5\u5b9e\u73b0\u6df1\u514b\u9686\u53ef\u4ee5\u6709\u6548\u89e3\u51b3JSON\u65b9\u6cd5\u7684\u5c40\u9650\u6027\uff0c\u80fd\u591f\u5904\u7406\u66f4\u52a0\u590d\u6742\u7684\u6570\u636e\u7c7b\u578b\u548c\u7ed3\u6784\u3002\u9012\u5f52\u65b9\u6cd5\u9700\u8981\u5224\u65ad\u6570\u636e\u7c7b\u578b\uff0c\u5e76\u5bf9\u5bf9\u8c61\u548c\u6570\u7ec4\u7c7b\u578b\u8fdb\u884c\u9012\u5f52\u514b\u9686\u3002<\/p>\n<\/p>\n<p><h3>\u57fa\u672c\u5b9e\u73b0\u6b65\u9aa4\uff1a<\/h3>\n<\/p>\n<ol>\n<li>\u5224\u65ad\u4f20\u5165\u7684\u53c2\u6570\u662f\u5426\u662f\u5bf9\u8c61\u7c7b\u578b\uff0c\u5982\u679c\u4e0d\u662f\uff0c\u76f4\u63a5\u8fd4\u56de\u3002<\/li>\n<li>\u521d\u59cb\u5316\u4e00\u4e2a\u65b0\u7684\u5bf9\u8c61\u6216\u6570\u7ec4\u6765\u5b58\u50a8\u514b\u9686\u7ed3\u679c\u3002<\/li>\n<li>\u904d\u5386\u5bf9\u8c61\u5c5e\u6027\u6216\u6570\u7ec4\u5143\u7d20\uff0c\u5bf9\u6bcf\u4e2a\u5c5e\u6027\u6216\u5143\u7d20\u8c03\u7528\u6df1\u514b\u9686\u51fd\u6570\u8fdb\u884c\u9012\u5f52\u514b\u9686\u3002<\/li>\n<li>\u8fd4\u56de\u514b\u9686\u5b8c\u6210\u7684\u65b0\u5bf9\u8c61\u6216\u6570\u7ec4\u3002<\/li>\n<\/ol>\n<p><h3>\u5b9e\u73b0\u4ee3\u7801\u793a\u4f8b\uff1a<\/h3>\n<\/p>\n<p><pre><code class=\"language-javascript\">function cloneDeep(obj, hash = new WeakMap()) {<\/p>\n<p>  if (obj === null || typeof obj !== &#039;object&#039;) return obj;<\/p>\n<p>  if (hash.has(obj)) return hash.get(obj);<\/p>\n<p>  let result = Array.isArray(obj) ? [] : {};<\/p>\n<p>  hash.set(obj, result);<\/p>\n<p>  for (let key in obj) {<\/p>\n<p>    if (obj.hasOwnProperty(key)) {<\/p>\n<p>      result[key] = cloneDeep(obj[key], hash);<\/p>\n<p>    }<\/p>\n<p>  }<\/p>\n<p>  return result;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u7279\u70b9\u5206\u6790\uff1a<\/h3>\n<\/p>\n<ul>\n<li>\u80fd\u591f\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5305\u62ec\u5faa\u73af\u5f15\u7528\u3001\u7279\u6b8a\u5bf9\u8c61\u7b49\u3002<\/li>\n<li>\u9700\u8981\u624b\u52a8\u5904\u7406\u6bcf\u4e00\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5b9e\u73b0\u8f83\u4e3a\u590d\u6742\u3002<\/li>\n<li>\u4f7f\u7528WeakMap\u6765\u5b58\u50a8\u5df2\u514b\u9686\u5bf9\u8c61\uff0c\u9632\u6b62\u5faa\u73af\u5f15\u7528\u5bfc\u81f4\u7684\u5806\u6808\u6ea2\u51fa\u3002<\/li>\n<\/ul>\n<p><h2>\u4e09\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5b9e\u73b0\u6df1\u514b\u9686<\/h2>\n<\/p>\n<p><p>\u7b2c\u4e09\u65b9\u5e93\u5982lodash\u63d0\u4f9b\u4e86\u73b0\u6210\u7684<code>_.cloneDeep<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u5730\u5b9e\u73b0\u6df1\u514b\u9686\u3002\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6700\u5927\u7684\u4f18\u70b9\u662f\u7b80\u5355\u5feb\u6377\uff0c\u4e0d\u9700\u8981\u81ea\u5df1\u7f16\u5199\u590d\u6742\u7684\u514b\u9686\u903b\u8f91\uff0c\u4e14\u8fd9\u4e9b\u5e93\u7ecf\u8fc7\u5e7f\u6cdb\u6d4b\u8bd5\uff0c\u517c\u5bb9\u6027\u548c\u7a33\u5b9a\u6027\u8f83\u597d\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528lodash\u793a\u4f8b\u4ee3\u7801\uff1a<\/h3>\n<\/p>\n<p><pre><code class=\"language-javascript\">import _ from &#039;lodash&#039;;<\/p>\n<p>const object = { a: 1, b: { c: 2 } };<\/p>\n<p>const clonedObject = _.cloneDeep(object);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u7279\u70b9\u5206\u6790\uff1a<\/h3>\n<\/p>\n<ul>\n<li>\u7b80\u5355\u5feb\u6377\uff0c\u4e0d\u9700\u8981\u81ea\u5df1\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u548c\u7c7b\u578b\u5224\u65ad\u95ee\u9898\u3002<\/li>\n<li>lodash\u7b49\u5e93\u5177\u6709\u826f\u597d\u7684\u793e\u533a\u652f\u6301\u548c\u6587\u6863\uff0c\u4f7f\u7528\u5e7f\u6cdb\u3002<\/li>\n<li>\u589e\u52a0\u4e86\u9879\u76ee\u7684\u4f9d\u8d56\uff0c\u9700\u8981\u8003\u8651\u5230\u5305\u7684\u5927\u5c0f\u5bf9\u9879\u76ee\u7684\u5f71\u54cd\u3002<\/li>\n<\/ul>\n<p><h2>\u56db\u3001\u4f7f\u7528StructuredClone API<\/h2>\n<\/p>\n<p><p>\u8fd1\u671f\uff0c\u6d4f\u89c8\u5668\u5f00\u59cb\u652f\u6301<code>structuredClone<\/code>\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u80fd\u591f\u6df1\u514b\u9686JavaScript\u503c\uff0c\u89e3\u51b3\u4e86<code>JSON.stringify\/parse<\/code>\u65b9\u6cd5\u7684\u5f88\u591a\u9650\u5236\uff0c\u5e76\u4e14\u4e0d\u9700\u8981\u5916\u90e8\u5e93\u7684\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u793a\u4f8b\uff1a<\/h3>\n<\/p>\n<p><pre><code class=\"language-javascript\">const original = { a: 1, b: { c: 2 } };<\/p>\n<p>const cloned = structuredClone(original);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u7279\u70b9\u5206\u6790\uff1a<\/h3>\n<\/p>\n<ul>\n<li>\u4e0d\u9700\u8981\u989d\u5916\u7684\u5e93\u6216\u51fd\u6570\uff0c\u6d4f\u89c8\u5668\u539f\u751f\u652f\u6301\u3002<\/li>\n<li>\u80fd\u591f\u5904\u7406\u5f88\u591a<code>JSON.stringify\/parse<\/code>\u4e0d\u80fd\u5904\u7406\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5305\u62ecMap\u3001Set\u3001ArrayBuffer\u3001\u5faa\u73af\u5f15\u7528\u7b49\u3002<\/li>\n<li>\u5f53\u524d\u6d4f\u89c8\u5668\u652f\u6301\u5ea6\u4e0d\u662f\u5b8c\u5168\u666e\u904d\uff0c\u9700\u8981\u6ce8\u610f\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/li>\n<\/ul>\n<p><p>\u6df1\u514b\u9686\u662f\u524d\u7aef\u5f00\u53d1\u4e2d\u5e38\u89c1\u7684\u9700\u6c42\uff0c\u7406\u89e3\u548c\u638c\u63e1\u4e0d\u540c\u7684\u5b9e\u73b0\u65b9\u5f0f\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u81ea\u5df1\u7684\u9002\u7528\u573a\u666f\u548c\u9650\u5236\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u9ad8\u6548\u5730\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u4ec0\u4e48\u662f\u6df1\u514b\u9686\uff1f<\/strong><\/p>\n<p>\u6df1\u514b\u9686\u662f\u6307\u5728Javascript\u7f16\u7a0b\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5bf9\u8c61\uff0c\u5e76\u5c06\u539f\u59cb\u5bf9\u8c61\u7684\u6240\u6709\u5c5e\u6027\u548c\u5b50\u5bf9\u8c61\u9012\u5f52\u5730\u590d\u5236\u5230\u65b0\u5bf9\u8c61\u4e2d\u7684\u8fc7\u7a0b\u3002\u8fd9\u610f\u5473\u7740\u65b0\u5bf9\u8c61\u4e0e\u539f\u59cb\u5bf9\u8c61\u5177\u6709\u76f8\u540c\u7684\u5c5e\u6027\u548c\u503c\uff0c\u5e76\u4e14\u4efb\u4f55\u5d4c\u5957\u7684\u5bf9\u8c61\u4e5f\u662f\u72ec\u7acb\u4e14\u5b8c\u5168\u590d\u5236\u7684\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u4f7f\u7528Javascript\u4ee3\u7801\u5b9e\u73b0\u6df1\u514b\u9686\uff1f<\/strong><\/p>\n<p>\u8981\u5b9e\u73b0\u6df1\u514b\u9686\uff0c\u53ef\u4ee5\u4f7f\u7528\u9012\u5f52\u7b97\u6cd5\u6765\u904d\u5386\u6e90\u5bf9\u8c61\u7684\u6240\u6709\u5c5e\u6027\uff0c\u5e76\u6839\u636e\u5c5e\u6027\u7684\u7c7b\u578b\u8fdb\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-javascript\">function deepClone(obj) {\n  if (typeof obj !== &#039;object&#039; || obj === null) {\n    return obj; \/\/ \u5982\u679c\u662f\u57fa\u672c\u7c7b\u578b\u6216null\uff0c\u5219\u76f4\u63a5\u8fd4\u56de\n  }\n  \n  let clone = Array.isArray(obj) ? [] : {};\n  \n  for (let key in obj) {\n    if (obj.hasOwnProperty(key)) {\n      clone[key] = deepClone(obj[key]); \/\/ \u9012\u5f52\u8c03\u7528\u6df1\u514b\u9686\u5b50\u5bf9\u8c61\n    }\n  }\n  \n  return clone;\n}\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u9996\u5148\u68c0\u67e5\u5bf9\u8c61\u7684\u7c7b\u578b\uff0c\u5982\u679c\u662f\u57fa\u672c\u7c7b\u578b\u6216null\uff0c\u5219\u76f4\u63a5\u8fd4\u56de\u3002\u7136\u540e\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7a7a\u5bf9\u8c61\u6216\u6570\u7ec4\uff0c\u7136\u540e\u904d\u5386\u6e90\u5bf9\u8c61\u7684\u6240\u6709\u5c5e\u6027\uff0c\u5e76\u4f7f\u7528\u9012\u5f52\u8c03\u7528<code>deepClone<\/code>\u51fd\u6570\u6765\u6df1\u514b\u9686\u5b50\u5bf9\u8c61\u3002\u6700\u540e\u8fd4\u56de\u514b\u9686\u540e\u7684\u5bf9\u8c61\u3002<\/p>\n<p><strong>3. \u6709\u4ec0\u4e48\u6ce8\u610f\u4e8b\u9879\u9700\u8981\u6ce8\u610f\u5728\u6df1\u514b\u9686\u8fc7\u7a0b\u4e2d\uff1f<\/strong><\/p>\n<p>\u5728\u5b9e\u73b0\u6df1\u514b\u9686\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n<ul>\n<li>\u5faa\u73af\u5f15\u7528\uff1a\u5982\u679c\u6e90\u5bf9\u8c61\u4e2d\u5b58\u5728\u5faa\u73af\u5f15\u7528\uff08\u5373\u67d0\u4e2a\u5c5e\u6027\u7684\u503c\u6307\u5411\u81ea\u8eab\uff09\uff0c\u5219\u4f1a\u5bfc\u81f4\u65e0\u9650\u9012\u5f52\uff0c\u9700\u8981\u989d\u5916\u5904\u7406\u6765\u907f\u514d\u6b7b\u5faa\u73af\u3002<\/li>\n<li>\u51fd\u6570\u548c\u539f\u578b\u94fe\uff1a\u51fd\u6570\u548c\u539f\u578b\u94fe\u5bf9\u8c61\u65e0\u6cd5\u901a\u8fc7\u7b80\u5355\u7684\u8d4b\u503c\u6765\u590d\u5236\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\u8fdb\u884c\u7279\u6b8a\u5904\u7406\uff0c\u6216\u8005\u9009\u62e9\u4e0d\u590d\u5236\u8fd9\u4e9b\u7279\u6b8a\u5bf9\u8c61\u3002<\/li>\n<li>\u8de8\u73af\u5883\u514b\u9686\uff1a\u5982\u679c\u9700\u8981\u5728\u4e0d\u540c\u7684Javascript\u73af\u5883\uff08\u5982\u6d4f\u89c8\u5668\u548cNode.js\uff09\u4e2d\u8fd0\u884c\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u76ee\u6807\u73af\u5883\u7684\u7279\u6027\u8fdb\u884c\u517c\u5bb9\u5904\u7406\u3002<\/li>\n<\/ul>\n<p>\u6df1\u514b\u9686\u662f\u4e00\u9879\u590d\u6742\u7684\u4efb\u52a1\uff0c\u9700\u8981\u8c28\u614e\u5904\u7406\u5404\u79cd\u60c5\u51b5\uff0c\u4ee5\u907f\u514d\u51fa\u73b0\u610f\u5916\u7684\u9519\u8bef\u6216\u6027\u80fd\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"JavaScript\u4ee3\u7801\u5b9e\u73b0\u6df1\u514b\u9686\u7684\u5e38\u89c1\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528JSON.stringify\u548cJSON.parse\u3001\u4f7f\u7528 [&hellip;]","protected":false},"author":3,"featured_media":170140,"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\/170127"}],"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=170127"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/170127\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/170140"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=170127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=170127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=170127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}