{"id":160012,"date":"2024-05-08T13:21:31","date_gmt":"2024-05-08T05:21:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/160012.html"},"modified":"2024-05-08T13:21:35","modified_gmt":"2024-05-08T05:21:35","slug":"%e5%89%8d%e7%ab%af-javascript-%e7%a8%8b%e5%ba%8f%e4%b8%ad-class-%e7%bb%a7%e6%89%bf%e7%9a%84%e7%9f%a5%e8%af%86%e7%82%b9%e6%9c%89%e5%93%aa%e4%ba%9b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/160012.html","title":{"rendered":"\u524d\u7aef JavaScript \u7a0b\u5e8f\u4e2d class \u7ee7\u627f\u7684\u77e5\u8bc6\u70b9\u6709\u54ea\u4e9b"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26222602\/cb23f19b-1af3-4333-bc10-2af6e73c8cf3.webp\" alt=\"\u524d\u7aef JavaScript \u7a0b\u5e8f\u4e2d class \u7ee7\u627f\u7684\u77e5\u8bc6\u70b9\u6709\u54ea\u4e9b\" \/><\/p>\n<p><p>JavaScript \u4e2d\u7684\u7c7b\u7ee7\u627f\u662f\u57fa\u4e8e\u539f\u578b\u94fe\u5b9e\u73b0\u7684\uff0c<strong>\u4e3b\u8981\u6d89\u53ca\u6784\u9020\u51fd\u6570\u3001\u539f\u578b\u5bf9\u8c61\u548c\u539f\u578b\u94fe<\/strong>\u3002\u5728\u7ee7\u627f\u673a\u5236\u4e2d\uff0c\u4e00\u4e2a\u7c7b\uff08\u5b50\u7c7b\uff09\u53ef\u4ee5\u7ee7\u627f\u53e6\u4e00\u4e2a\u7c7b\uff08\u7236\u7c7b\uff09\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u8ba9\u4ee3\u7801\u590d\u7528\u66f4\u52a0\u65b9\u4fbf\uff0c\u53ef\u7ef4\u62a4\u6027\u66f4\u5f3a\u3002<\/p>\n<\/p>\n<p><p>\u7ee7\u627f\u7684\u5173\u952e\u5728\u4e8e\u5b50\u7c7b\u80fd\u591f\u8bbf\u95ee\u548c\u4f7f\u7528\u7236\u7c7b\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u8fd9\u901a\u5e38\u901a\u8fc7<strong>\u8bbe\u7f6e\u5b50\u7c7b\u539f\u578b\u5bf9\u8c61\u4e3a\u7236\u7c7b\u7684\u4e00\u4e2a\u5b9e\u4f8b<\/strong>\u6765\u5b9e\u73b0\u3002\u8fd9\u79cd\u505a\u6cd5\u4f7f\u5f97\u5b50\u7c7b\u7684\u6240\u6709\u5b9e\u4f8b\u90fd\u80fd\u901a\u8fc7\u539f\u578b\u94fe\u67e5\u627e\u5230\u7236\u7c7b\u4e2d\u5b9a\u4e49\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002\u7ee7\u627f\u4e5f\u5141\u8bb8\u5b50\u7c7b\u91cd\u5199\u7236\u7c7b\u7684\u65b9\u6cd5\u4ee5\u8868\u73b0\u4e0d\u540c\u7684\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001CLASS \u8bed\u6cd5\u7cd6\u4e0b\u7684\u7ee7\u627f<\/h3>\n<\/p>\n<p><p>\u5728 ES6 \u5f15\u5165\u7684 class \u8bed\u6cd5\u7cd6\u4e4b\u4e0b\uff0c\u7ee7\u627f\u663e\u5f97\u66f4\u52a0\u7b80\u6d01\u660e\u4e86\uff0c\u6b64\u65f6\u4f7f\u7528\u7684\u662f <code>extends<\/code> \u5173\u952e\u5b57\u3002\u6784\u9020\u51fd\u6570\u548c\u539f\u578b\u65b9\u6cd5\u90fd\u80fd\u65b9\u4fbf\u5730\u5728 <code>class<\/code> \u5b9a\u4e49\u5185\u90e8\u5b8c\u6210\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u4f7f\u7528 extends \u5b9e\u73b0\u7ee7\u627f<\/strong><br \/>\u901a\u8fc7\u5728\u5b50\u7c7b\u5b9a\u4e49\u65f6\u4f7f\u7528 <code>extends<\/code> \u5173\u952e\u5b57\uff0c\u53ef\u4ee5\u6307\u5b9a\u8be5\u5b50\u7c7b\u7ee7\u627f\u81ea\u54ea\u4e2a\u7236\u7c7b\u3002\u5728\u5b50\u7c7b\u7684\u6784\u9020\u51fd\u6570\u4e2d\uff0c\u5fc5\u987b\u9996\u5148\u8c03\u7528 <code>super()<\/code> \u65b9\u6cd5\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u8c03\u7528\u4f1a\u6267\u884c\u7236\u7c7b\u7684\u6784\u9020\u5668\uff0c\u5e76\u4e14\u8fd4\u56de\u7236\u7c7b\u7684\u5b9e\u4f8b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u91cd\u5199\u7236\u7c7b\u65b9\u6cd5<\/strong><br \/>\u5b50\u7c7b\u53ef\u4ee5\u5305\u542b\u4e0e\u7236\u7c7b\u76f8\u540c\u540d\u79f0\u7684\u65b9\u6cd5\u3002\u5f53\u8fd9\u79cd\u60c5\u51b5\u53d1\u751f\u65f6\uff0c\u5b50\u7c7b\u7684\u65b9\u6cd5\u4f1a\u8986\u76d6\u6389\u7236\u7c7b\u7684\u65b9\u6cd5\uff0c\u8fd9\u79f0\u4e3a\u65b9\u6cd5\u91cd\u5199\u3002\u82e5\u9700\u8981\u5728\u5b50\u7c7b\u65b9\u6cd5\u4e2d\u8c03\u7528\u7236\u7c7b\u88ab\u91cd\u5199\u7684\u65b9\u6cd5\uff0c\u53ef\u901a\u8fc7 <code>super<\/code> \u5173\u952e\u5b57\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u6784\u9020\u51fd\u6570\u548c\u539f\u578b\u94fe\u7ee7\u627f<\/h3>\n<\/p>\n<p><p>\u5728 ES6 \u5f15\u5165 <code>class<\/code> \u5173\u952e\u5b57\u4e4b\u524d\uff0cJavaScript \u7684\u7ee7\u627f\u4e3b\u8981\u662f\u4f9d\u8d56\u6784\u9020\u51fd\u6570\u548c\u539f\u578b\u94fe\u6765\u5b9e\u73b0\u7684\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u6784\u9020\u51fd\u6570\u7ee7\u627f<\/strong><br \/>\u5b50\u7c7b\u7684\u6784\u9020\u51fd\u6570\u4e2d\u8c03\u7528\u7236\u7c7b\u7684\u6784\u9020\u51fd\u6570\uff0c\u4f7f\u7528 <code>call<\/code> \u6216\u8005 <code>apply<\/code> \u65b9\u6cd5\u5c06\u7236\u7c7b\u6784\u9020\u51fd\u6570\u7684\u4e0a\u4e0b\u6587\u5207\u6362\u5230\u5b50\u7c7b\u5b9e\u4f8b\u4e0a\uff0c\u4ece\u800c\u5b9e\u73b0\u5c5e\u6027\u7684\u7ee7\u627f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u539f\u578b\u94fe\u7ee7\u627f<\/strong><br \/>\u5c06\u5b50\u7c7b\u7684\u539f\u578b\u8bbe\u7f6e\u4e3a\u7236\u7c7b\u7684\u4e00\u4e2a\u5b9e\u4f8b\u3002\u8fd9\u6837\uff0c\u5b50\u7c7b\u5c31\u53ef\u4ee5\u901a\u8fc7\u539f\u578b\u94fe\u67e5\u627e\u5230\u7236\u7c7b\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002\u4f46\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u6709\u4e00\u4e2a\u7f3a\u70b9\u662f\u6240\u6709\u7684\u5b50\u7c7b\u5b9e\u4f8b\u5171\u4eab\u4e86\u7236\u7c7b\u7684\u5f15\u7528\u5c5e\u6027\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u610f\u5916\u7684\u6570\u636e\u5171\u4eab\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u7ec4\u5408\u7ee7\u627f<\/h3>\n<\/p>\n<p><p>\u7ec4\u5408\u7ee7\u627f\u7ed3\u5408\u4e86\u6784\u9020\u51fd\u6570\u548c\u539f\u578b\u94fe\u7ee7\u627f\u7684\u4f18\u70b9\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u7ec4\u5408\u7ee7\u627f\u7684\u539f\u7406<\/strong><br \/>\u5373\u4f7f\u7528\u6784\u9020\u51fd\u6570\u7ee7\u627f\u7236\u7c7b\u7684\u5c5e\u6027\uff0c\u901a\u8fc7\u539f\u578b\u94fe\u7ee7\u627f\u7236\u7c7b\u7684\u65b9\u6cd5\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u4e3b\u8981\u4f18\u52bf\u5728\u4e8e\u80fd\u591f\u907f\u514d\u539f\u578b\u94fe\u7ee7\u627f\u4e2d\u7531\u4e8e\u5171\u4eab\u5f15\u7528\u5c5e\u6027\u800c\u5f15\u8d77\u7684\u95ee\u9898\uff0c\u540c\u65f6\u53c8\u80fd\u591f\u5b9e\u73b0\u65b9\u6cd5\u7684\u91cd\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ec4\u5408\u7ee7\u627f\u7684\u5b9e\u73b0<\/strong><br \/>\u5b50\u7c7b\u7684\u6784\u9020\u51fd\u6570\u4e2d\u8c03\u7528\u7236\u7c7b\u7684\u6784\u9020\u51fd\u6570\u6765\u7ee7\u627f\u5c5e\u6027\uff0c\u540c\u65f6\u5b50\u7c7b\u7684\u539f\u578b\u88ab\u8bbe\u7f6e\u4e3a\u7236\u7c7b\u7684\u5b9e\u4f8b\u6765\u7ee7\u627f\u65b9\u6cd5\u3002\u8fd9\u6837\u505a\u7684\u7ed3\u679c\u662f\u6bcf\u4e2a\u5b50\u7c7b\u7684\u5b9e\u4f8b\u90fd\u6709\u4e00\u4efd\u5c5e\u4e8e\u81ea\u5df1\u7684\u5c5e\u6027\uff0c\u4e14\u80fd\u591f\u8bbf\u95ee\u7236\u7c7b\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u539f\u578b\u5f0f\u7ee7\u627f<\/h3>\n<\/p>\n<p><p>\u539f\u578b\u5f0f\u7ee7\u627f\u4e3b\u8981\u4f9d\u8d56\u4e8e Object.create \u65b9\u6cd5\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>Object.create \u5b9e\u73b0\u7ee7\u627f<\/strong><br \/><code>Object.create<\/code> \u65b9\u6cd5\u521b\u5efa\u4e00\u4e2a\u65b0\u5bf9\u8c61\uff0c\u4f7f\u5f97\u8fd9\u4e2a\u65b0\u5bf9\u8c61\u7684\u539f\u578b\u6307\u5411\u4f20\u5165\u7684\u5bf9\u8c61\u3002\u8fd9\u6837\uff0c\u65b0\u5bf9\u8c61\u53ef\u4ee5\u8bbf\u95ee\u8be5\u539f\u578b\u5bf9\u8c61\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u539f\u578b\u5f0f\u7ee7\u627f\u7684\u7279\u70b9<\/strong><br \/>\u539f\u578b\u5f0f\u7ee7\u627f\u9002\u5408\u4e0d\u9700\u8981\u5355\u72ec\u521b\u5efa\u6784\u9020\u51fd\u6570\uff0c\u4f46\u53c8\u60f3\u5728\u591a\u4e2a\u5bf9\u8c61\u95f4\u5171\u4eab\u5c5e\u6027\u548c\u65b9\u6cd5\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u4e94\u3001\u7c7b\u7684\u9759\u6001\u65b9\u6cd5\u548c\u5c5e\u6027\u7684\u7ee7\u627f<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u901a\u5e38\u7684\u5b9e\u4f8b\u5c5e\u6027\u548c\u65b9\u6cd5\u5916\uff0c\u7c7b\u8fd8\u53ef\u4ee5\u62e5\u6709\u9759\u6001\u65b9\u6cd5\u548c\u5c5e\u6027\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u548c\u5c5e\u6027\u4e0e\u7c7b\u7684\u5b9e\u4f8b\u65e0\u5173\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u9759\u6001\u65b9\u6cd5\u548c\u5c5e\u6027<\/strong><br \/>\u4f7f\u7528 <code>static<\/code> \u5173\u952e\u5b57\u53ef\u4ee5\u5b9a\u4e49\u7c7b\u7684\u9759\u6001\u65b9\u6cd5\u548c\u5c5e\u6027\u3002\u9759\u6001\u65b9\u6cd5\u901a\u5e38\u7528\u4e8e\u5b9e\u73b0\u4e0e\u7c7b\u76f8\u5173\u4f46\u4e0d\u7279\u5b9a\u4e8e\u7c7b\u5b9e\u4f8b\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9759\u6001\u5c5e\u6027\u548c\u65b9\u6cd5\u7684\u7ee7\u627f<\/strong><br \/>\u5f53\u4e00\u4e2a\u7c7b\u7ee7\u627f\u81ea\u53e6\u4e00\u4e2a\u7c7b\u65f6\uff0c\u5b83\u4e5f\u4f1a\u7ee7\u627f\u7236\u7c7b\u7684\u9759\u6001\u65b9\u6cd5\u548c\u5c5e\u6027\u3002\u8fd9\u610f\u5473\u7740\u53ef\u4ee5\u901a\u8fc7\u5b50\u7c7b\u76f4\u63a5\u8c03\u7528\u5b83\u4eec\uff0c\u800c\u65e0\u9700\u521b\u5efa\u7c7b\u7684\u5b9e\u4f8b\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u516d\u3001\u57fa\u4e8e\u7c7b\u7684\u7ee7\u627f\u7684\u6700\u4f73\u5b9e\u8df5\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u73b0\u7ee7\u627f\u65f6\uff0c\u9700\u8981\u8003\u8651\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u6027\u80fd\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u907f\u514d\u8fc7\u6df1\u7684\u7ee7\u627f\u5c42\u7ea7<\/strong><br \/>\u8fc7\u591a\u7684\u7ee7\u627f\u5c42\u7ea7\u4f1a\u4f7f\u5f97\u4ee3\u7801\u96be\u4ee5\u7406\u89e3\u548c\u7ef4\u62a4\u3002\u901a\u5e38\u63a8\u8350\u5c3d\u91cf\u4fdd\u6301\u7ee7\u627f\u7684\u5c42\u6b21\u8f83\u6d45\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6ce8\u610f\u5c5e\u6027\u548c\u65b9\u6cd5\u7684\u590d\u7528<\/strong><br \/>\u7ee7\u627f\u5e94\u5f53\u7528\u6765\u590d\u7528\u4ee3\u7801\uff0c\u5728\u8bbe\u8ba1\u7c7b\u7684\u5c42\u6b21\u7ed3\u6784\u65f6\u9700\u8981\u6ce8\u610f\u5408\u7406\u5212\u5206\uff0c\u786e\u4fdd\u7236\u7c7b\u548c\u5b50\u7c7b\u7684\u804c\u8d23\u660e\u786e\uff0c\u907f\u514d\u5b50\u7c7b\u7ee7\u627f\u4e0d\u5fc5\u8981\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cJavaScript \u4e2d\u7684\u7c7b\u7ee7\u627f\u662f\u901a\u8fc7\u7ec4\u5408\u6784\u9020\u51fd\u6570\u7ee7\u627f\u548c\u539f\u578b\u94fe\u7ee7\u627f\u4e24\u79cd\u65b9\u5f0f\u5b9e\u73b0\u7684\u3002\u9009\u62e9\u5408\u9002\u7684\u7ee7\u627f\u6a21\u5f0f\uff0c\u5e76\u7ed3\u5408\u5b9e\u9645\u9700\u6c42\uff0c\u53ef\u4ee5\u4f7f\u5f97\u4ee3\u7801\u7ed3\u6784\u6e05\u6670\uff0c\u5e76\u4e14\u5bb9\u6613\u7ef4\u62a4\u3002\u5728 class \u8bed\u6cd5\u51fa\u73b0\u4e4b\u540e\uff0c\u8fd9\u4e9b\u7ee7\u627f\u65b9\u5f0f\u5c3d\u7ba1\u5728\u8bed\u6cd5\u4e0a\u5f97\u5230\u4e86\u7b80\u5316\u548c\u4f18\u5316\uff0c\u4f46\u5e95\u5c42\u7684\u7ee7\u627f\u673a\u5236\u5374\u6ca1\u6709\u6539\u53d8\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u4ec0\u4e48\u662f JavaScript \u4e2d\u7684 class \u7ee7\u627f\uff1f<\/strong><br \/>\nJavaScript \u4e2d\u7684 class \u7ee7\u627f\u662f\u4e00\u79cd\u901a\u8fc7\u4e00\u4e2a\u7c7b\u6765\u6d3e\u751f\u53e6\u4e00\u4e2a\u7c7b\u7684\u673a\u5236\u3002\u5b50\u7c7b\u7ee7\u627f\u4e86\u7236\u7c7b\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u5e76\u4e14\u53ef\u4ee5\u6dfb\u52a0\u65b0\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u5b9e\u73b0\u4ee3\u7801\u7684\u590d\u7528\u548c\u7ec4\u7ec7\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728 JavaScript \u4e2d\u4f7f\u7528 class \u7ee7\u627f\uff1f<\/strong><br \/>\n\u8981\u4f7f\u7528 class \u7ee7\u627f\uff0c\u5728\u5b9a\u4e49\u5b50\u7c7b\u65f6\u9700\u8981\u4f7f\u7528 <code>extends<\/code> \u5173\u952e\u5b57\u6765\u6307\u5b9a\u7236\u7c7b\u3002\u7136\u540e\uff0c\u5b50\u7c7b\u53ef\u4ee5\u91cd\u5199\u7236\u7c7b\u7684\u65b9\u6cd5\uff0c\u6216\u8005\u65b0\u589e\u81ea\u5df1\u7684\u65b9\u6cd5\u548c\u5c5e\u6027\u3002\u53ef\u4ee5\u4f7f\u7528 <code>super<\/code> \u5173\u952e\u5b57\u6765\u8c03\u7528\u7236\u7c7b\u7684\u65b9\u6cd5\u3002<\/p>\n<p><strong>\u6709\u54ea\u4e9b\u5e38\u89c1\u7684 JavaScript class \u7ee7\u627f\u7684\u6a21\u5f0f\uff1f<\/strong><br \/>\n\u9664\u4e86\u5e38\u89c1\u7684\u5355\u7ee7\u627f\u6a21\u5f0f\uff0c\u5728 JavaScript \u4e2d\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u7684\u7ee7\u627f\u6a21\u5f0f\uff0c\u5982\u591a\u7ee7\u627f\u3001\u6df7\u5408\u7ee7\u627f\u548c\u539f\u578b\u94fe\u7ee7\u627f\u7b49\u3002\u8fd9\u4e9b\u7ee7\u627f\u6a21\u5f0f\u90fd\u6709\u81ea\u5df1\u7684\u7279\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6a21\u5f0f\u6765\u5b9e\u73b0\u7ee7\u627f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"JavaScript \u4e2d\u7684\u7c7b\u7ee7\u627f\u662f\u57fa\u4e8e\u539f\u578b\u94fe\u5b9e\u73b0\u7684\uff0c\u4e3b\u8981\u6d89\u53ca\u6784\u9020\u51fd\u6570\u3001\u539f\u578b\u5bf9\u8c61\u548c\u539f\u578b\u94fe\u3002\u5728\u7ee7\u627f\u673a\u5236\u4e2d\uff0c\u4e00\u4e2a\u7c7b\uff08 [&hellip;]","protected":false},"author":3,"featured_media":160020,"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\/160012"}],"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=160012"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/160012\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/160020"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=160012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=160012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=160012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}