{"id":166365,"date":"2024-05-08T15:35:09","date_gmt":"2024-05-08T07:35:09","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/166365.html"},"modified":"2024-05-08T15:35:13","modified_gmt":"2024-05-08T07:35:13","slug":"javascript%e6%80%8e%e4%b9%88%e8%b7%b3%e8%bd%ac%e9%a1%b5%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/166365.html","title":{"rendered":"javascript\u600e\u4e48\u8df3\u8f6c\u9875\u9762"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26233358\/4af43698-28f8-41b8-a8ef-9b33e1190afb.webp\" alt=\"javascript\u600e\u4e48\u8df3\u8f6c\u9875\u9762\" \/><\/p>\n<p><p>\u5728JavaScript\u4e2d\uff0c\u8df3\u8f6c\u9875\u9762\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4e3b\u8981\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528 <strong><code>window.location<\/code>\u5bf9\u8c61\u3001<code>Location.href<\/code>\u5c5e\u6027\u3001<code>Location.assign()<\/code>\u65b9\u6cd5\u3001<code>Location.replace()<\/code>\u65b9\u6cd5<\/strong> \u4ee5\u53ca\u4f7f\u7528<code>window.open()<\/code>\u51fd\u6570\u3002<strong>\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u5176\u7528\u9014\u548c\u7279\u70b9<\/strong>\uff0c\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u9875\u9762\u8df3\u8f6c\u673a\u5236\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c<strong><code>Location.href<\/code><\/strong> \u5c5e\u6027\u662f\u975e\u5e38\u5e38\u7528\u7684\u8df3\u8f6c\u65b9\u5f0f\u4e4b\u4e00\u3002\u901a\u8fc7\u8bbe\u7f6e <code>Location.href<\/code> \u7684\u503c\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9875\u9762\u7684\u8df3\u8f6c\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u8df3\u8f6c\u7c7b\u4f3c\u4e8e\u7528\u6237\u70b9\u51fb\u4e86\u4e00\u4e2a\u94fe\u63a5\uff0c\u8fd9\u4e0d\u4ec5\u4f1a\u5bfc\u81f4\u65b0URL\u88ab\u63a8\u9001\u5230\u6d4f\u89c8\u5668\u7684\u5386\u53f2\u8bb0\u5f55\u4e2d\uff0c\u8fd8\u5141\u8bb8\u7528\u6237\u70b9\u51fb\u540e\u9000\u6309\u94ae\u56de\u5230\u539f\u9875\u9762\u3002\u6b63\u7531\u4e8e\u5176\u8fd9\u79cd\u65e0\u7f1d\u7684\u7528\u6237\u4f53\u9a8c\uff0c<code>Location.href<\/code>\u6210\u4e3a\u4e86\u5b9e\u73b0\u9875\u9762\u8df3\u8f6c\u7684\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\uff0c\u8ba9\u6211\u4eec\u6df1\u5165\u63a2\u8ba8\u6bcf\u79cd\u65b9\u6cd5\u7684\u4f7f\u7528\u573a\u666f\u548c\u5b9e\u73b0\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h2><strong>\u4e00\u3001\u4f7f\u7528<code>WINDOW.LOCATION<\/code>\u5bf9\u8c61\u5b9e\u73b0\u9875\u9762\u8df3\u8f6c<\/strong><\/h2>\n<\/p>\n<p><p><code>window.location<\/code>\u5bf9\u8c61\u8868\u793a\u5f53\u524d\u7a97\u53e3\u7684\u4f4d\u7f6e\u3002\u5b83\u4e0d\u4ec5\u5305\u542b\u4e86\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u4fe1\u606f\uff0c\u5982\u534f\u8bae\uff08http\u6216https\uff09\u3001\u4e3b\u673a\u540d\u3001\u7aef\u53e3\u53f7\u3001\u8def\u5f84\u548c\u67e5\u8be2\u5b57\u7b26\u4e32\u7b49\uff0c\u8fd8\u63d0\u4f9b\u4e86\u65b9\u6cd5\u6765\u5b9e\u73b0\u9875\u9762\u8df3\u8f6c\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u4fee\u6539<code>window.location<\/code>\u7684\u5c5e\u6027<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u76f4\u63a5\u4fee\u6539<code>window.location<\/code>\u7684\u5c5e\u6027\u5982<code>href<\/code>\u3001<code>hostname<\/code>\u3001<code>pathname<\/code>\u7b49\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9875\u9762\u7684\u91cd\u5b9a\u5411\u3002\u5176\u4e2d\uff0c\u76f4\u63a5\u4fee\u6539<code>window.location.href<\/code>\u5c5e\u6027\u662f\u6700\u76f4\u63a5\u548c\u5e38\u7528\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u5b83\u7b49\u540c\u4e8e\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u4e00\u4e2a\u65b0\u7684URL\u6216\u70b9\u51fb\u4e00\u4e2a\u94fe\u63a5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528<code>window.location.assign()<\/code>\u65b9\u6cd5<\/strong><\/p>\n<\/p>\n<p><p><code>window.location.assign()<\/code>\u65b9\u6cd5\u7528\u6765\u52a0\u8f7d\u4e00\u4e2a\u65b0\u7684\u6587\u6863\u3002\u5b83\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u4fee\u6539<code>window.location.href<\/code>\u7c7b\u4f3c\uff0c\u4f46\u66f4\u660e\u786e\u5730\u8868\u793a\u4e86\u9875\u9762\u8df3\u8f6c\u7684\u610f\u56fe\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h2><strong>\u4e8c\u3001\u901a\u8fc7<code>LOCATION.HREF<\/code>\u5c5e\u6027\u5b9e\u73b0\u5feb\u901f\u8df3\u8f6c<\/strong><\/h2>\n<\/p>\n<p><p>\u4fee\u6539<code>location.href<\/code>\u5c5e\u6027\u662f\u5b9e\u73b0\u9875\u9762\u8df3\u8f6c\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u5f53\u4f60\u7ed9<code>location.href<\/code>\u8d4b\u4e88\u4e00\u4e2aURL\u65f6\uff0c\u6d4f\u89c8\u5668\u4f1a\u7acb\u5373\u52a0\u8f7d\u8fd9\u4e2aURL\u5bf9\u5e94\u7684\u9875\u9762\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u597d\u5904\u5728\u4e8e\uff0c\u5b83\u6a21\u62df\u4e86\u7528\u6237\u70b9\u51fb\u94fe\u63a5\u7684\u884c\u4e3a\uff0c\u56e0\u6b64\u4e0e\u7528\u6237\u671f\u671b\u7684\u7f51\u9875\u6d4f\u89c8\u884c\u4e3a\u4e00\u81f4\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p><code>location.href = &#039;http:\/\/www.example.com&#039;;<\/code><\/p>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u4f1a\u8ba9\u6d4f\u89c8\u5668\u5bfc\u822a\u5230<code>www.example.com<\/code>\u3002\u8fd9\u79cd\u65b9\u5f0f\u7b80\u5355\u6613\u7528\uff0c\u662f\u9875\u9762\u8df3\u8f6c\u4e2d\u6700\u5e38\u89c1\u7684\u6280\u672f\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u573a\u666f<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>location.href<\/code>\u9002\u5408\u4e8e\u90a3\u4e9b\u4e0d\u9700\u8981\u4ece\u5f53\u524d\u9875\u9762\u4f20\u9012\u590d\u6742\u6570\u636e\u5230\u65b0\u9875\u9762\u7684\u60c5\u51b5\u3002\u7531\u4e8e\u5176\u64cd\u4f5c\u7b49\u540c\u4e8e\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165URL\u6216\u70b9\u51fb\u94fe\u63a5\uff0c\u56e0\u6b64\u5b83\u4e5f\u63d0\u4f9b\u4e86\u7528\u6237\u53cb\u597d\u7684\u540e\u9000\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h2><strong>\u4e09\u3001\u5229\u7528<code>LOCATION.ASSIGN()<\/code>\u65b9\u6cd5\u4e0e<code>LOCATION.REPLACE()<\/code>\u65b9\u6cd5<\/strong><\/h2>\n<\/p>\n<p><p><code>Location.assign()<\/code>\u65b9\u6cd5\u548c<code>Location.replace()<\/code>\u65b9\u6cd5\u90fd\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u9875\u9762\u7684\u8df3\u8f6c\uff0c\u4f46\u5b83\u4eec\u4e4b\u95f4\u5b58\u5728\u91cd\u8981\u5dee\u5f02\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong><code>Location.assign()<\/code>\u65b9\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>Location.assign()<\/code>\u65b9\u6cd5\u8df3\u8f6c\u9875\u9762\u65f6\uff0c\u65b0\u7684URL\u4f1a\u88ab\u6dfb\u52a0\u5230\u6d4f\u89c8\u5668\u7684\u5386\u53f2\u8bb0\u5f55\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u540e\u9000\u6309\u94ae\u56de\u5230\u524d\u4e00\u4e2a\u9875\u9762\u3002\u8fd9\u79cd\u65b9\u5f0f\u9002\u5408\u90a3\u4e9b\u9700\u8981\u8bb0\u5f55\u7528\u6237\u6d4f\u89c8\u5386\u53f2\u4ee5\u65b9\u4fbf\u540e\u9000\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong><code>Location.replace()<\/code>\u65b9\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u4e0e<code>Location.assign()<\/code>\u4e0d\u540c\uff0c<code>Location.replace()<\/code>\u65b9\u6cd5\u4f1a\u7528\u65b0\u7684URL\u66ff\u6362\u6389\u5f53\u524d\u7684\u9875\u9762\uff0c\u56e0\u6b64\u4e0d\u4f1a\u5728\u6d4f\u89c8\u5668\u5386\u53f2\u8bb0\u5f55\u4e2d\u7559\u4e0b\u5f53\u524d\u9875\u9762\u7684\u8bb0\u5f55\u3002\u8fd9\u610f\u5473\u7740\u7528\u6237\u4e0d\u80fd\u901a\u8fc7\u540e\u9000\u6309\u94ae\u8fd4\u56de\u5230\u88ab\u66ff\u6362\u7684\u9875\u9762\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u4e8e\u90a3\u4e9b\u4e0d\u5e0c\u671b\u7528\u6237\u540e\u9000\u56de\u7279\u5b9a\u9875\u9762\u7684\u573a\u666f\uff0c\u6bd4\u5982\u5b8c\u6210\u8868\u5355\u63d0\u4ea4\u540e\u7684\u9875\u9762\u8df3\u8f6c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h2><strong>\u56db\u3001\u4f7f\u7528<code>WINDOW.OPEN()<\/code>\u51fd\u6570<\/strong><\/h2>\n<\/p>\n<p><p><code>window.open()<\/code>\u51fd\u6570\u4e0d\u4ec5\u53ef\u4ee5\u5b9e\u73b0\u9875\u9762\u8df3\u8f6c\uff0c\u8fd8\u53ef\u4ee5\u63a7\u5236\u65b0\u5f00\u9875\u9762\u7684\u4e00\u4e9b\u5c5e\u6027\uff0c\u5982\u5927\u5c0f\u3001\u4f4d\u7f6e\u7b49\u3002\u8fd9\u79cd\u65b9\u5f0f\u7279\u522b\u9002\u7528\u4e8e\u9700\u8981\u6253\u5f00\u65b0\u7a97\u53e3\u6216\u6807\u7b7e\u9875\u4e2d\u7684\u9875\u9762\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p><code>window.open(&#039;http:\/\/www.example.com&#039;);<\/code><\/p>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u4f1a\u5728\u65b0\u7684\u6807\u7b7e\u9875\u6216\u7a97\u53e3\u4e2d\u6253\u5f00\u6307\u5b9a\u7684URL\u3002\u901a\u8fc7\u7b2c\u4e8c\u4e2a\u53c2\u6570\u548c\u53c2\u6570\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63a7\u5236\u65b0\u7a97\u53e3\u7684\u884c\u4e3a\u548c\u5916\u89c2\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9ad8\u7ea7\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p><code>window.open<\/code>\u7684\u9ad8\u7ea7\u5e94\u7528\u5305\u62ec\u8bbe\u7f6e\u7a97\u53e3\u7684\u5927\u5c0f\u3001\u4f4d\u7f6e\u4ee5\u53ca\u662f\u5426\u5141\u8bb8\u6eda\u52a8\u6761\u7b49\u3002\u4f8b\u5982\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6307\u5b9a\u65b0\u7a97\u53e3\u7684\u5c3a\u5bf8\uff0c\u4f7f\u5176\u9002\u5e94\u7279\u5b9a\u7684\u5185\u5bb9\u5c55\u793a\u9700\u6c42\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u603b\u7ed3\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230JavaScript\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u9875\u9762\u8df3\u8f6c\u624b\u6bb5\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u7279\u5b9a\u7684\u4f7f\u7528\u573a\u666f\u548c\u4f18\u52bf\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u548c\u8fd0\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u9700\u6c42\u4e0b\u5b9e\u73b0\u7075\u6d3b\u9ad8\u6548\u7684\u9875\u9762\u5bfc\u822a\u548c\u7528\u6237\u8df3\u8f6c\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u5982\u4f55\u4f7f\u7528JavaScript\u8fdb\u884c\u9875\u9762\u8df3\u8f6c\uff1f<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528window.location.href\u6765\u5b9e\u73b0\u9875\u9762\u8df3\u8f6c\uff1a<\/strong><\/p>\n<pre><code>window.location.href = &quot;http:\/\/www.example.com&quot;;\n<\/code><\/pre>\n<p>\u8fd9\u4f1a\u4f7f\u6d4f\u89c8\u5668\u7acb\u5373\u8df3\u8f6c\u5230\u7ed9\u5b9a\u7684URL\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528location.replace\u6765\u8fdb\u884c\u9875\u9762\u8df3\u8f6c\uff1a<\/strong><\/p>\n<pre><code>location.replace(&quot;http:\/\/www.example.com&quot;);\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u65b9\u6cd5\u4f1a\u5728\u8df3\u8f6c\u540e\u5220\u9664\u5f53\u524d\u9875\u9762\u7684\u5386\u53f2\u8bb0\u5f55\uff0c\u4f7f\u7528\u6237\u65e0\u6cd5\u56de\u9000\u5230\u524d\u4e00\u4e2a\u9875\u9762\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5982\u4f55\u5728\u5f53\u524d\u9875\u9762\u4e0a\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u6807\u7b7e\u9875\uff1f<\/strong><\/p>\n<pre><code>window.open(&quot;http:\/\/www.example.com&quot;, &quot;_blank&quot;);\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u5728\u65b0\u7684\u6807\u7b7e\u9875\u4e2d\u6253\u5f00\u7ed9\u5b9a\u7684URL\uff0c\u800c\u4e0d\u4f1a\u5173\u95ed\u5f53\u524d\u9875\u9762\u3002<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u5982\u4f55\u4f7f\u7528JavaScript\u5b9e\u73b0\u9875\u9762\u5185\u951a\u70b9\u8df3\u8f6c\uff1f<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u9996\u5148\uff0c\u5728\u76ee\u6807\u4f4d\u7f6e\u8bbe\u7f6e\u951a\u70b9\uff1a<\/strong><\/p>\n<pre><code>&lt;a id=&quot;anchor&quot;&gt;&lt;\/a&gt;\n<\/code><\/pre>\n<p>\u5728\u76ee\u6807\u4f4d\u7f6e\u6dfb\u52a0\u4e00\u4e2a\u5e26\u6709\u7279\u5b9aID\u7684\u951a\u70b9\u5143\u7d20\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7136\u540e\uff0c\u901a\u8fc7JavaScript\u89e6\u53d1\u951a\u70b9\u8df3\u8f6c\uff1a<\/strong><\/p>\n<pre><code>window.location.href = &quot;#anchor&quot;;\n<\/code><\/pre>\n<p>\u8fd9\u4f1a\u4f7f\u6d4f\u89c8\u5668\u5e73\u6ed1\u6eda\u52a8\u5230\u5e26\u6709\u6307\u5b9aID\u7684\u4f4d\u7f6e\uff0c\u5b9e\u73b0\u9875\u9762\u5185\u8df3\u8f6c\u3002<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u5982\u4f55\u4f7f\u7528JavaScript\u5b9e\u73b0\u5ef6\u65f6\u8df3\u8f6c\u9875\u9762\uff1f<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528setTimeout\u51fd\u6570\u8bbe\u7f6e\u5ef6\u65f6\uff1a<\/strong><\/p>\n<pre><code>setTimeout(function() {\n  window.location.href = &quot;http:\/\/www.example.com&quot;;\n}, 3000);\n<\/code><\/pre>\n<p>\u8fd9\u4f1a\u57283\u79d2\u540e\u8df3\u8f6c\u5230\u6307\u5b9a\u7684URL\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5982\u4f55\u5728\u5ef6\u65f6\u8df3\u8f6c\u524d\u7ed9\u7528\u6237\u63d0\u4f9b\u4e00\u4e2a\u53d6\u6d88\u9009\u9879\uff1f<\/strong><\/p>\n<pre><code>var timer = setTimeout(function() {\n  window.location.href = &quot;http:\/\/www.example.com&quot;;\n}, 3000);\n\nfunction cancelRedirect() {\n  clearTimeout(timer);\n}\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u8df3\u8f6c\u4e4b\u524d\u70b9\u51fb\u4e00\u4e2a\u6309\u94ae\u6216\u94fe\u63a5\u6765\u53d6\u6d88\u5b9a\u65f6\u8df3\u8f6c\u3002<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"\u5728JavaScript\u4e2d\uff0c\u8df3\u8f6c\u9875\u9762\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4e3b\u8981\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528 window.location\u5bf9\u8c61\u3001 [&hellip;]","protected":false},"author":3,"featured_media":166372,"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\/166365"}],"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=166365"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/166365\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/166372"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=166365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=166365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=166365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}