{"id":166316,"date":"2024-05-08T15:34:14","date_gmt":"2024-05-08T07:34:14","guid":{"rendered":""},"modified":"2024-05-08T15:34:20","modified_gmt":"2024-05-08T07:34:20","slug":"javascript%e4%b8%adfunction-prototype%e6%98%af%e5%af%b9%e8%b1%a1%e8%bf%98%e6%98%af%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/166316.html","title":{"rendered":"javascript\u4e2dFunction.prototype\u662f\u5bf9\u8c61\u8fd8\u662f\u51fd\u6570"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26233205\/cb7a8ab1-3030-4272-9fba-3ec6d6d51c28.webp\" alt=\"javascript\u4e2dFunction.prototype\u662f\u5bf9\u8c61\u8fd8\u662f\u51fd\u6570\" \/><\/p>\n<p><p><strong>Function.prototype\u662f\u5bf9\u8c61<\/strong>\uff0c\u5b83\u662f\u4e00\u4e2a\u7a7a\u51fd\u6570\uff08function\uff09\u7684\u539f\u578b\u5bf9\u8c61\u3002\u5728JavaScript\u4e2d\uff0c\u51fd\u6570\u901a\u5e38\u88ab\u89c6\u4e3a\u4e00\u7b49\u516c\u6c11\uff0c\u56e0\u4e3a\u5b83\u4eec\u672c\u8d28\u4e0a\u4e5f\u662f\u5bf9\u8c61\uff0c\u5b83\u4eec\u53ea\u662f\u53ef\u4ee5\u88ab\u8c03\u7528\u3002<strong>Function.prototype<\/strong>\u627f\u62c5\u4e86\u51fd\u6570\uff08Function\u5bf9\u8c61\u7684\u6784\u9020\u5668\uff09\u539f\u578b\u94fe\u7684\u9876\u7aef\u89d2\u8272\uff0c\u8fd9\u610f\u5473\u7740\u6240\u6709\u901a\u8fc7Function\u6784\u9020\u5668\u521b\u5efa\u7684\u51fd\u6570\u90fd\u4f1a\u7ee7\u627fFunction.prototype\u5bf9\u8c61\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002\u8fd9\u4e2a\u539f\u578b\u5bf9\u8c61\u662f\u552f\u4e00\u7684\u60c5\u51b5\uff0c\u5176\u4e2d\u4e00\u4e2a\u539f\u578b\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u5bf9\u8c61\u800c\u4e0d\u662f\u4e00\u4e2a\u5e38\u89c4\u7684\u51fd\u6570\u3002\u8fd9\u4e2a\u5bf9\u8c61\u4e0d\u5177\u6709\u4e00\u4e2a[[Call]]\u5185\u90e8\u65b9\u6cd5\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u672c\u8eab\u4e0d\u80fd\u4f5c\u4e3a\u51fd\u6570\u88ab\u8c03\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Function.prototype\u7684\u884c\u4e3a\u7279\u6027<\/h3>\n<\/p>\n<p><p>Function.prototype\u5bf9\u8c61\u62e5\u6709\u81ea\u5df1\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u6bd4\u5982apply\u3001call\u548cbind\u7b49\uff0c\u5b83\u4eec\u662f\u6240\u6709\u51fd\u6570\u7531\u4e8e\u7ee7\u627f\u4e86Function.prototype\u800c\u5171\u4eab\u7684\u3002\u867d\u7136Function.prototype\u662f\u4e00\u4e2a\u7a7a\u51fd\u6570\uff0c\u4f46\u5b83\u786e\u5b9e\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u5bf9\u6240\u6709\u51fd\u6570\u81f3\u5173\u91cd\u8981\u7684\u57fa\u7840\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>Function.prototype\u7684\u5c5e\u6027<\/h4>\n<\/p>\n<p><p>Function.prototype\u5bf9\u8c61\u62e5\u6709\u4e00\u4e9b\u5185\u5efa\u5c5e\u6027\uff0c\u4f8b\u5982constructor\u5c5e\u6027\uff0c\u8be5\u5c5e\u6027\u6307\u5411\u521b\u9020\u5b9e\u4f8b\u51fd\u6570\u7684Function\u6784\u9020\u51fd\u6570\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u62e5\u6709length\u548cname\u5c5e\u6027\uff0c\u8fd9\u4e9b\u5c5e\u6027\u5206\u522b\u6307\u793a\u51fd\u6570\u671f\u671b\u7684\u53c2\u6570\u4e2a\u6570\u548c\u51fd\u6570\u540d\u79f0\u3002\u4f46\u662f\uff0c\u4f5c\u4e3a\u539f\u578b\u5bf9\u8c61\uff0cFunction.prototype\u672c\u8eab\u7684length\u548cname\u5c5e\u6027\u5e76\u4e0d\u4ee3\u8868\u5177\u4f53\u7684\u51fd\u6570\u4fe1\u606f\uff0c\u56e0\u4e3a\u5b83\u5e76\u4e0d\u5173\u8054\u4efb\u4f55\u5177\u4f53\u7684\u51fd\u6570\u5b9e\u4f8b\u3002<\/p>\n<\/p>\n<p><h4>Function.prototype\u7684\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u6240\u6709\u901a\u8fc7Function\u6784\u9020\u51fd\u6570\u521b\u5efa\u7684\u51fd\u6570\u5b9e\u4f8b\u90fd\u4f1a\u7ee7\u627fFunction.prototype\u4e0a\u7684\u65b9\u6cd5\uff0c\u4f8b\u5982toString\u65b9\u6cd5\uff0c\u5141\u8bb8\u5c06\u51fd\u6570\u6e90\u7801\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u5f62\u5f0f\u3002apply\u3001call\u548cbind\u662f\u9ad8\u9636\u7684\u51fd\u6570\u64cd\u4f5c\u65b9\u6cd5\uff0c\u5b83\u4eec\u5206\u522b\u7528\u4e8e\u6307\u5b9a\u51fd\u6570\u7684this\u503c\u548c\u8c03\u7528\u51fd\u6570\u3001\u4ee5\u53ca\u56fa\u5b9a\u51fd\u6570\u7684this\u503c\u548c\u90e8\u5206\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u7406\u89e3Function.prototype\u4e0e\u539f\u578b\u94fe<\/h3>\n<\/p>\n<p><p>JavaScript\u4e2d\u7684\u539f\u578b\u94fe\u662f\u57fa\u4e8e\u539f\u578b\u7ee7\u627f\u673a\u5236\u7684\u6838\u5fc3\u3002\u6bcf\u4e00\u4e2a\u6784\u9020\u51fd\u6570\u90fd\u6709\u4e00\u4e2aprototype\u5c5e\u6027\uff0c\u6307\u5411\u4e00\u4e2a\u539f\u578b\u5bf9\u8c61\uff0c\u800c\u6bcf\u4e2a\u5b9e\u4f8b\u5bf9\u8c61\u90fd\u4f1a\u62e5\u6709\u4e00\u4e2a\u5185\u90e8\u6307\u9488[[Prototype]]\uff08\u4e5f\u5c31\u662f__proto__\u5c5e\u6027\uff09\u6307\u5411\u5176\u6784\u9020\u51fd\u6570\u7684prototype\u3002\u8fd9\u6837\uff0c\u5b9e\u4f8b\u53ef\u4ee5\u8bbf\u95ee\u539f\u578b\u5bf9\u8c61\u4e0a\u5b9a\u4e49\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>\u539f\u578b\u94fe\u7684\u6784\u6210<\/h4>\n<\/p>\n<p><p>\u5728\u539f\u578b\u7ee7\u627f\u673a\u5236\u4e2d\uff0c\u4e00\u4e2a\u5bf9\u8c61\u7684__proto__\u5c5e\u6027\u4f1a\u6307\u5411\u521b\u5efa\u8be5\u5bf9\u8c61\u7684\u6784\u9020\u51fd\u6570\u7684prototype\u3002\u8fd9\u79cd\u94fe\u63a5\u5173\u7cfb\u5f62\u6210\u4e86\u4e00\u6761\u539f\u578b\u94fe\uff0c\u5f53\u8bd5\u56fe\u8bbf\u95ee\u4e00\u4e2a\u5bf9\u8c61\u7684\u5c5e\u6027\u65f6\uff0c\u82e5\u8be5\u5bf9\u8c61\u672c\u8eab\u4e0d\u5b58\u5728\u8be5\u5c5e\u6027\uff0c\u5219\u4f1a\u6cbf\u7740\u539f\u578b\u94fe\u5411\u4e0a\u67e5\u627e\uff0c\u76f4\u81f3\u627e\u5230\u4e3a\u6b62\u6216\u5230\u8fbe\u539f\u578b\u94fe\u9876\u7aef\u7684null\u3002<\/p>\n<\/p>\n<p><h4>Function.prototype\u5728\u539f\u578b\u94fe\u4e2d\u7684\u4f4d\u7f6e<\/h4>\n<\/p>\n<p><p>Function.prototype\u4f4d\u4e8e\u539f\u578b\u94fe\u7684\u9876\u7aef\uff0c\u4f5c\u4e3a\u6240\u6709\u7531Function\u6784\u9020\u7684\u5bf9\u8c61\u7684\u539f\u578b\u7684\u539f\u578b\u3002\u66f4\u5177\u4f53\u6765\u8bf4\uff0cFunction.prototype\u81ea\u8eab\u662f\u4e00\u4e2a\u5bf9\u8c61\uff0c\u5b83\u7684__proto__\u5c5e\u6027\u6307\u5411Object.prototype\uff0c\u56e0\u4e3a\u6700\u7ec8\u6240\u6709\u5bf9\u8c61\u90fd\u662f\u4eceObject\u4e2d\u7ee7\u627f\u800c\u6765\u7684\u3002\u8fd9\u79cd\u7ed3\u6784\u786e\u4fdd\u4e86\u51fd\u6570\u5728JavaScript\u4e2d\u4f5c\u4e3a\u5bf9\u8c61\u65f6\u80fd\u591f\u7ee7\u627f\u5fc5\u8981\u7684\u65b9\u6cd5\u548c\u5c5e\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001Function.prototype\u7684\u7279\u6b8a\u6027\u8d28<\/h3>\n<\/p>\n<p><p>Function.prototype\u4e0d\u540c\u4e8e\u5176\u4ed6\u51fd\u6570\u5bf9\u8c61\uff0c\u5b83\u5177\u6709\u4e00\u4e9b\u72ec\u7279\u7684\u7279\u6027\u4f7f\u5176\u5728JavaScript\u4e2d\u626e\u6f14\u7279\u6b8a\u89d2\u8272\u3002<\/p>\n<\/p>\n<p><h4>Function.prototype\u4e0d\u662f\u5e38\u89c4\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u867d\u7136Function.prototype\u662f\u51fd\u6570\u7684\u539f\u578b\u5bf9\u8c61\uff0c\u4f46\u5b83\u672c\u8eab\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u4e0d\u5177\u5907[[Call]]\u5185\u90e8\u65b9\u6cd5\u7684\u7279\u6b8a\u5bf9\u8c61\u3002\u8fd9\u610f\u5473\u7740Function.prototype\u5e76\u4e0d\u80fd\u50cf\u5176\u4ed6\u51fd\u6570\u90a3\u6837\u88ab\u8c03\u7528\uff0c\u5c1d\u8bd5\u8c03\u7528\u5b83\u5c06\u4f1a\u5bfc\u81f4TypeError\u3002<\/p>\n<\/p>\n<p><h4>Function.prototype\u7684\u4e0d\u53ef\u53d8\u6027<\/h4>\n<\/p>\n<p><p>Function.prototype\u5bf9\u8c61\u7684\u7279\u6b8a\u6027\u4e5f\u4f53\u73b0\u5728\u5176\u4e0d\u53ef\u53d8\u6027\u4e0a\u3002\u7531\u4e8e\u5b83\u4f4d\u4e8e\u539f\u578b\u94fe\u9876\u7aef\uff0c\u4e3a\u4e86\u4fdd\u6301\u539f\u578b\u94fe\u7684\u7a33\u5b9a\u6027\uff0cJavaScript\u5f15\u64ce\u4e0d\u5141\u8bb8\u4fee\u6539Function.prototype\u5bf9\u8c61\u3002\u8fd9\u610f\u5473\u7740\u65e0\u6cd5\u7ed9Function.prototype\u6dfb\u52a0\u65b0\u7684\u5c5e\u6027\u6216\u65b9\u6cd5\uff0c\u4e5f\u65e0\u6cd5\u5220\u9664\u5b83\u7684\u73b0\u6709\u5c5e\u6027\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001Function.prototype\u7684\u7528\u9014\u4e0e\u5b9e\u8df5<\/h3>\n<\/p>\n<p><p>\u867d\u7136Function.prototype\u4e0d\u80fd\u5f53\u4f5c\u51fd\u6570\u4f7f\u7528\uff0c\u4f46\u5b83\u5728\u7f16\u7801\u5b9e\u8df5\u4e2d\u4ecd\u7136\u626e\u6f14\u7740\u91cd\u8981\u89d2\u8272\u3002\u901a\u8fc7Function.prototype\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u6240\u6709\u51fd\u6570\u5171\u4eab\u65b9\u6cd5\u7684\u6269\u5c55\u548c\u4f18\u5316\u3002<\/p>\n<\/p>\n<p><h4>\u6269\u5c55\u51fd\u6570\u7684\u516c\u5171\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u5f00\u53d1\u8005\u53ef\u4ee5\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7684\u65b9\u6cd5\u5230Function.prototype\uff0c\u8fd9\u6837\u6240\u6709\u7684\u51fd\u6570\u5b9e\u4f8b\u90fd\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u3002\u7136\u800c\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u867d\u7136\u6280\u672f\u4e0a\u53ef\u884c\uff0c\u4f46\u4fee\u6539\u539f\u578b\u5bf9\u8c61\u901a\u5e38\u88ab\u89c6\u4e3a\u4e0d\u4f73\u7684\u5b9e\u8df5\uff0c\u56e0\u4e3a\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6f5c\u5728\u7684\u51b2\u7a81\u548c\u4e0d\u53ef\u9884\u89c1\u7684\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><h4>\u6027\u80fd\u4f18\u5316<\/h4>\n<\/p>\n<p><p>Function.prototype\u65b9\u6cd5\uff0c\u5c24\u5176\u662fapply\u3001call\u548cbind\uff0c\u7ecf\u5e38\u88ab\u7528\u6765\u4f18\u5316\u6027\u80fd\u3002\u4f8b\u5982\uff0c\u4f7f\u7528apply\u548ccall\u53ef\u4ee5\u9ad8\u6548\u5730\u4f20\u9012\u53c2\u6570\u548c\u8bbe\u7f6e\u51fd\u6570\u7684\u6267\u884c\u4e0a\u4e0b\u6587\u3002\u540c\u65f6\uff0cbind\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u51fd\u6570\u5b9e\u4f8b\uff0c\u56fa\u5b9a\u67d0\u4e9b\u53c2\u6570\u548cthis\u503c\uff0c\u8fd9\u5728\u56de\u8c03\u548c\u4e8b\u4ef6\u5904\u7406\u4e2d\u5c24\u4e3a\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>Function.prototype\u662f\u4e00\u4e2a\u5bf9\u8c61<\/strong>\u800c\u975e\u4e00\u4e2a\u53ef\u8c03\u7528\u7684\u51fd\u6570\uff0c\u4f5c\u4e3a\u6240\u6709\u51fd\u6570\u7684\u539f\u578b\uff0c\u5728JavaScript\u4e2d\u5177\u6709\u81f3\u5173\u91cd\u8981\u7684\u5730\u4f4d\u3002\u867d\u7136\u5b83\u4e0d\u80fd\u50cf\u5176\u4ed6\u51fd\u6570\u90a3\u6837\u4f7f\u7528\uff0c\u4f46\u5b83\u4ecd\u7136\u4e3a\u51fd\u6570\u5b9e\u4f8b\u63d0\u4f9b\u4e86\u4e00\u5957\u5171\u4eab\u7684\u65b9\u6cd5\u548c\u5c5e\u6027\uff0c\u8fd9\u4e9b\u5171\u4eab\u7684\u65b9\u6cd5\u548c\u5c5e\u6027\u6781\u5927\u5730\u4e30\u5bcc\u4e86JavaScript\u51fd\u6570\u7684\u80fd\u529b\u3002\u7406\u89e3Function.prototype\u7684\u884c\u4e3a\u3001\u539f\u578b\u94fe\u7684\u5173\u7cfb\u3001\u7279\u6b8a\u6027\u8d28\u53ca\u5176\u5b9e\u9645\u5e94\u7528\uff0c\u5bf9\u4e8e\u6df1\u5165\u7406\u89e3JavaScript\u7684\u51fd\u6570\u548c\u5bf9\u8c61\u6a21\u578b\u6709\u91cd\u8981\u610f\u4e49\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. Function.prototype\u662fJavaScript\u4e2d\u7684\u4e00\u4e2a\u5bf9\u8c61\u8fd8\u662f\u4e00\u4e2a\u51fd\u6570\uff1f<\/strong><br \/>\nFunction.prototype\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u5bf9\u8c61\uff0c\u5b83\u7528\u4e8e\u5b58\u50a8\u51fd\u6570\u5b9a\u4e49\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u662f\u6240\u6709\u51fd\u6570\u5bf9\u8c61\u7684\u539f\u578b\u3002\u867d\u7136\u5b83\u88ab\u79f0\u4e3aFunction.prototype\uff0c\u4f46\u5b83\u5e76\u4e0d\u662f\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u51fd\u6570\u3002<\/p>\n<p><strong>2. Function.prototype\u6709\u54ea\u4e9b\u5e38\u89c1\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff1f<\/strong><br \/>\nFunction.prototype\u5bf9\u8c61\u4e2d\u6709\u4e00\u4e9b\u5e38\u89c1\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u5176\u4e2d\u5305\u62ec<code>call()<\/code>\u548c<code>apply()<\/code>\u65b9\u6cd5\uff0c\u7528\u4e8e\u5728\u51fd\u6570\u5bf9\u8c61\u4e0a\u6267\u884c\u51fd\u6570\uff1b<code>bind()<\/code>\u65b9\u6cd5\u7528\u4e8e\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u5728\u8c03\u7528\u65f6\u4f7f\u7528\u6307\u5b9a\u7684\u4e0a\u4e0b\u6587\u548c\u53c2\u6570\uff1b<code>toString()<\/code>\u65b9\u6cd5\u7528\u4e8e\u5c06\u51fd\u6570\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff1b<code>name<\/code>\u5c5e\u6027\u7528\u4e8e\u83b7\u53d6\u51fd\u6570\u7684\u540d\u79f0\uff0c\u4ee5\u53ca <code>length<\/code>\u5c5e\u6027\u7528\u4e8e\u83b7\u53d6\u51fd\u6570\u53c2\u6570\u7684\u4e2a\u6570\u7b49\u3002 Function.prototype\u8fd8\u5177\u6709\u5176\u4ed6\u4e00\u4e9b\u7528\u4e8e\u7ee7\u627f\u548c\u539f\u578b\u94fe\u7684\u7279\u6b8a\u5c5e\u6027\u3002<\/p>\n<p><strong>3. Function.prototype\u5bf9\u8c61\u6709\u4ec0\u4e48\u4f5c\u7528\uff1f<\/strong><br \/>\nFunction.prototype\u5bf9\u8c61\u4f5c\u4e3a\u6240\u6709\u51fd\u6570\u5bf9\u8c61\u7684\u539f\u578b\uff0c\u626e\u6f14\u7740\u91cd\u8981\u7684\u89d2\u8272\u3002\u901a\u8fc7\u4fee\u6539Function.prototype\u5bf9\u8c61\u4e0a\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u4e3a\u6240\u6709\u51fd\u6570\u5bf9\u8c61\u5171\u4eab\u76f8\u540c\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u5411Function.prototype\u6dfb\u52a0\u81ea\u5b9a\u4e49\u65b9\u6cd5\uff0c\u4ece\u800c\u8ba9\u6240\u6709\u51fd\u6570\u5bf9\u8c61\u90fd\u80fd\u591f\u76f4\u63a5\u8c03\u7528\u8fd9\u4e9b\u65b9\u6cd5\u3002\u6b64\u5916\uff0cFunction.prototype\u8fd8\u5141\u8bb8\u6211\u4eec\u901a\u8fc7\u539f\u578b\u94fe\u7ee7\u627f\u6765\u8bbf\u95ee\u548c\u4fee\u6539\u5176\u4ed6\u5bf9\u8c61\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002\u6b63\u662f\u56e0\u4e3a\u8fd9\u79cd\u7279\u6b8a\u7684\u539f\u578b\u5173\u7cfb\uff0cJavaScript\u7684OOP\u80fd\u591f\u5b9e\u73b0\u7ee7\u627f\u548c\u591a\u6001\u7b49\u9762\u5411\u5bf9\u8c61\u7684\u6982\u5ff5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Function.prototype\u662f\u5bf9\u8c61\uff0c\u5b83\u662f\u4e00\u4e2a\u7a7a\u51fd\u6570\uff08function\uff09\u7684\u539f\u578b\u5bf9\u8c61\u3002\u5728JavaScrip [&hellip;]","protected":false},"author":3,"featured_media":166324,"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\/166316"}],"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=166316"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/166316\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/166324"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=166316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=166316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=166316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}