{"id":10054,"date":"2021-08-08T14:52:18","date_gmt":"2021-08-08T06:52:18","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10054"},"modified":"2021-08-08T14:54:24","modified_gmt":"2021-08-08T06:54:24","slug":"polyfill-ponyfill-prollyfill","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2021\/08\/polyfill-ponyfill-prollyfill\/","title":{"rendered":"polyfill\u3001ponyfill\u3001prollyfill\u50bb\u50bb\u5206\u4e0d\u6e05\u695a"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10054\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=10054<\/a> \u946b\u7a7a\u95f4-\u946b\u751f\u6d3b<br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u5708\u5b50\u5c31\u8fd9\u4e48\u5927\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/202108-ponyfill.jpg';<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202108\/ponyfill-cover.jpg\" width=\"480\" height=\"330\" alt=\"\u9a6c\u513f\u7d20\u63cf\" class=\"alignright clip thumb size-medium\" \/><\/p>\n<h3>\u4e00\u3001ponyfill\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p>\u5076\u7136\u8fdb\u5165\u8c37\u6b4c\u5b9e\u9a8c\u5ba4\u7684<a href=\"https:\/\/github.com\/GoogleChromeLabs\/browser-fs-access\" rel=\"noopener\" target=\"_blank\">Browser-FS-Access\u9879\u76ee<\/a>\uff0c\u8fd9\u4e2a\u9879\u76ee\u4f7f\u7528 <a href=\"https:\/\/wicg.github.io\/file-system-access\/\" rel=\"noopener\" target=\"_blank\">File System Access API<\/a> \u5b9e\u73b0\u6587\u4ef6\u4e0a\u4f20\u73b0\u5728\uff0c\u5bf9\u4e8e\u4e0d\u652f\u6301\u6587\u4ef6\u7cfb\u7edf\u8bbf\u95eeAPI\u7684\u6d4f\u89c8\u5668\u4f7f\u7528 <code>&lt;input type=\"file\"&gt;<\/code> \u548c <code>&lt;a download&gt;<\/code> \u8fdb\u884c\u4f18\u96c5\u964d\u7ea7\u3002<\/p>\n<p>\u8fd9\u4e0d\u662f\u91cd\u70b9\uff0c\u91cd\u70b9\u662f\u6211\u5728\u5982\u6b64\u5b98\u65b9\u7684\u9879\u76ee\u4e2d\u53c8\u4e00\u6b21\u89c1\u5230\u4e86\u8fd9\u4e2a\u540d\u5b57\u2014\u2014ponyfill\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202108\/2021-08-08_113249.png\" width=\"384\" height=\"131\" alt=\"ponyfill\u586b\u5145\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u4e4b\u524d\u4e5f\u89c1\u5230\u8fc7\u51e0\u6b21\uff0c\u4ee5\u4e3a\u662f\u4e61\u91ce\u540d\u8bcd\uff0c\u6280\u672f\u6897\uff0c\u574a\u95f4\u7b11\u8c08\uff0c\u6ca1\u60f3\u5230\u8c37\u6b4c\u5b98\u65b9\u9879\u76ee\u90fd\u8fd9\u53ef\u8fd9\u4e2a\u540d\u8bcd\uff0c\u90a3\u5c31\u5fc5\u987b\u8981\u641e\u6e05\u695aponyfill\u662f\u4e2a\u4ec0\u4e48\u4e1c\u4e1c\u4e86\u3002<\/p>\n<h4>\u5c0f\u9a6c\u586b\u5145<\/h4>\n<p>\u5173\u4e8eponyfill\u8fd8\u6709\u4e2a\u4e13\u95e8\u7684<a href=\"https:\/\/github.com\/sindresorhus\/ponyfill\" rel=\"noopener\" target=\"_blank\">github\u9879\u76ee<\/a>\uff0c\u4e13\u95e8\u89e3\u91caponyfill\u662f\u4ec0\u4e48\uff0c\u4ee5\u53ca\u548cpolyfill\u7684\u533a\u522b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202108\/ponyfill-min.svg\" width=\"360\" height=\"226\" class=\"aligncenter size-medium\" \/><\/p>\n<p>polyfill\u5b57\u9762\u610f\u601d\u662f\u4f7f\u7528\u805a\u5408\u7269\u8fdb\u884c\u586b\u5145\uff0c\u6709\u8865\u7a9f\u7abf\u7684\u610f\u5473\u5728\u91cc\u9762\uff0c\u5c31\u597d\u50cf\u6709\u56db\u9762\u5899\uff0c\u6709\u4e00\u9762\u5899\u6709\u4e2a\u7a9f\u7abf\uff0c\u4f7f\u7528\u4e1c\u897f\u628a\u8fd9\u4e2a\u7a9f\u7abf\u8865\u4e0a\uff0c\u8ba9\u56db\u9762\u5899\u770b\u8d77\u6765\u4e00\u6837\uff0c\u6574\u6574\u9f50\u9f50\u7684\u5c31\u662fpolyfill\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202108\/2021-08-08_125152.jpg\" width=\"253\" height=\"123\" alt=\"\u6574\u6574\u9f50\u9f50\u4e00\u5bb6\u4eba\" class=\"alignnone size-medium\" \/><\/p>\n<p>ponyfill\u548cpolyfill\u7c7b\u4f3c\uff0c\u4f46\u662f\u66f4\u7eaf\u51c0\uff0c\u65e0\u6c61\u67d3\uff0c\u5c31\u50cf\u5c0f\u9a6c\u4e00\u6837\uff0c\u6211\u79f0\u4e4b\u4e3a\u201c\u5c0f\u9a6c\u586b\u5145\u201d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202108\/2021-08-08_130215.jpg\" width=\"242\" height=\"163\" alt=\"\u5c0f\u9a6c\u5403\u8349\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u540c\u6837\u662f\u8ba9\u4fee\u8865\u5899\u58c1\uff0cponyfill\u7684\u7b56\u7565\u5219\u662f\u53e6\u8d77\u7089\u7076\uff0c\u4e0d\u4f1a\u5728\u539f\u6709\u7684\u5899\u58c1\u4e0a\u4fee\u8865\uff0c\u800c\u662f\u91cd\u65b0\u5efa\u4e00\u9762\u5899\uff0c\u4fdd\u8bc1\u539f\u6765\u7684\u5899\u58c1\u8fd8\u662f\u90a3\u4e48\u539f\u59cb\u7eaf\u51c0\u65e0\u6c61\u67d3\u3002<\/p>\n<h3>\u4e8c\u3001polyfill\u548cponyfill\u7684\u533a\u522b<\/h3>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c<code>Array.isArray()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5224\u65ad\u4e00\u4e2a\u5bf9\u8c61\u662f\u4e0d\u662f\u6570\u7ec4\uff0c\u6b64\u65b9\u6cd5IE8\u6d4f\u89c8\u5668\u5e76\u4e0d\u652f\u6301\u3002<\/p>\n<p>\u5982\u679c\u91c7\u7528 polyfill \u7b56\u7565\uff0c\u5219\u4ee3\u7801\u4f1a\u662f\u4e0b\u9762\u8fd9\u6837\uff1a<\/p>\n<pre>if (!Array.isArray) {\r\n  Array.isArray = function(arg) {\r\n    return Object.prototype.toString.call(arg) === '[object Array]';\r\n  };\r\n}<\/pre>\n<p>\u91c7\u7528\u548c\u539f\u751f\u6d4f\u89c8\u5668\u4e00\u6837\u7684API\u3002<\/p>\n<p>\u5982\u679c\u91c7\u7528 ponyfill \u7b56\u7565\uff0c\u5219\u4ee3\u7801\u4f1a\u662f\u4e0b\u9762\u8fd9\u6837\uff1a<\/p>\n<pre>function isArray (arg) {\r\n  return Object.prototype.toString.call(arg) === '[object Array]';\r\n}<\/pre>\n<p>\u4f7f\u7528\u793a\u610f\uff1a<\/p>\n<pre>isArray([]) <span style=\"color:green;\">\/\/ \u8fd4\u56de true<\/span><\/pre>\n<p>\u540c\u6837\u662f\u8ba9\u6240\u6709\u6d4f\u89c8\u5668\u652f\u6301\u67d0\u529f\u80fd\uff0c\u4f46\u662f\uff0c\u5e76\u4e0d\u4f1a\u91c7\u7528\u548c\u89c4\u8303\u4e00\u81f4\u7684API\u3002<\/p>\n<p>\u4e5f\u5c31\u662fPonyfill\u603b\u662f\u907f\u514d\u4f7f\u7528\u539f\u751f API\u3002<\/p>\n<h4>\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528Ponyfill\uff1f<\/h4>\n<p>polyfill\u7b56\u7565\u5927\u90e8\u5206\u65f6\u5019\u90fd\u662f\u5f88OK\u7684\uff0c\u4f7f\u7528\u65b9\u4fbf\u5feb\u6377\uff0c\u4e0d\u9700\u8981\u5173\u5fc3\u5404\u79cd\u7ec6\u8282\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5e76\u4e0d\u662f\u6240\u6709\u7684\u65f6\u5019\u90fd\u9002\u5408\u4f7f\u7528polyfill\u3002<\/p>\n<ol>\n<li>\u6709\u4e9b\u539f\u751fAPI\u5b8c\u5168\u6ca1\u6cd5\u6a21\u62df\uff0c\u6b64\u65f6\u53ea\u80fd\u4f7f\u7528Ponyfill\u7b56\u7565\u3002\u4f8b\u5982\u672c\u6587\u4e00\u5f00\u59cb\u63d0\u5230\u7684 File System Access API\uff0c\u4f4e\u7248\u672c\u6d4f\u89c8\u5668\u5b8c\u5168\u641e\u4e0d\u5b9a\u3002\n<p>\u53c8\u4f8b\u5982 indexDB \u80fd\u529b\uff0c<code>history.pushState()<\/code>\u65b9\u6cd5\u7b49\uff0cIE9\u6d4f\u89c8\u5668\u6839\u672c\u6ca1\u6cd5\u6a21\u62df\uff0c\u53ea\u80fd\u4f7f\u7528 Ponyfill\u7b56\u7565\u3002<\/li>\n<li>\u6709\u4e9b\u539f\u751fAPI\u89c4\u8303\u8fd8\u6ca1\u7a33\u5b9a\uff0c\u6216\u8005\u5904\u4e8e\u5feb\u901f\u8fed\u4ee3\u4e2d\uff0c\u6216\u8005\u662f\u6d4f\u89c8\u5668\u90e8\u5206\u652f\u6301\uff0c\u6b64\u65f6\u8d70polyfill\u7b56\u7565\u53ef\u80fd\u4f1a\u6709\u95ee\u9898\uff0c\u5f71\u54cd\u672a\u6765\u7b56\u7565\u3002\u4f8b\u5982\u81ea\u5b9a\u4e49\u5143\u7d20v1\u89c4\u8303\u548cv2\u89c4\u8303\u3002<\/li>\n<li>\u6709\u65f6\u5019\u53ef\u80fd\u4f1a\u901a\u8fc7\u5bf9\u8c61\u5b58\u5728\u4e0e\u5426\u5224\u65ad\u6d4f\u89c8\u5668\uff0cpolyfill\u53ef\u80fd\u4f1a\u5f71\u54cd\u903b\u8f91\u3002\u4f8b\u5982\u6709\u4e1a\u52a1\u4ee3\u7801\u4f7f\u7528 <code>if (![].map) {}<\/code> \u5224\u65ad\u662f\u4e0d\u662f\u4f4e\u7248\u672cIE\u6d4f\u89c8\u5668\uff0c\u5982\u679c\u4e0d\u5c0f\u5fc3\u5f15\u5165\u4e86\u5305\u542b <code>Array.prototype.map<\/code> \u7684\u4ee3\u7801\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u95ee\u9898\u3002<\/li>\n<\/ol>\n<h4>\u5176\u4ed6<\/h4>\n<p>\u57fa\u672c\u4e0a\uff0c\u4e3a\u4e86\u907f\u514d\u5168\u5c40\u547d\u540d\u7684\u6c61\u67d3\uff0cPonyfill\u90fd\u662f\u5efa\u8bae\u91c7\u7528\u72ec\u7acb\u7684\u6a21\u5757\u5316\u7684\u65b9\u5f0f\u5f00\u53d1\u4e0e\u8c03\u7528\u7684\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>module.exports = function (arg) {\r\n  return Object.prototype.toString.call(arg) === '[object Array]';\r\n};<\/pre>\n<pre>var isArray= require('is-array-ponyfill');\r\n<span style=\"color:green;\">\/\/ \u8fd4\u56de true<\/span>\r\nisArray([]);<\/pre>\n<p>\u968f\u7740\u6d4f\u89c8\u5668\u5f00\u59cb<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2018\/08\/browser-native-es6-export-import-module\/\">\u539f\u751f\u652f\u6301 export\/import<\/a> \u6a21\u5757\u5bfc\u5165\u5bfc\u51fa\uff0cponyfill \u65b9\u6cd5\u5f00\u59cb\u4f7f\u7528\u6d4f\u89c8\u5668\u6807\u51c6\u6a21\u5757\u89c4\u8303\u4f7f\u7528\u4e86\uff1a<\/p>\n<pre>export default function (arg) {\r\n  return Object.prototype.toString.call(arg) === '[object Array]';\r\n};<\/pre>\n<pre>import isArray from 'is-array-ponyfill';\r\n<span style=\"color:green;\">\/\/ \u8fd4\u56de true<\/span>\r\nisArray([]);<\/pre>\n<h3>\u4e09\u3001prollyfill\u53c8\u662f\u4ec0\u4e48\u9b3c\uff1f<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202108\/2021-08-08_140547.jpg\" width=\"120\" height=\"155\" alt=\"\u4ec0\u4e48\u9b3c\uff1f\" class=\"alignleft size-medium\" \/> \u67e5\u627e\u76f8\u5173\u8d44\u6599\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u8fd8\u6709\u4e2a prollyfill\uff0c\u641e\u7b11\u4e86\uff0cprollyfill\u6982\u5ff5\u8c8c\u4f3c\u8fd8\u672a\u52a0\u5165\u6b63\u7edf\uff0c\u5904\u4e8e\u5c0f\u8303\u56f4\u8f6c\u64ad\u9636\u6bb5\u3002<\/p>\n<p>Prollyfill\u672c\u8d28\u4e0a\u5c31\u662f Polyfill\uff0c\u53ea\u662fPolyfill\u7684\u8fd9\u4e2aAPI\u8fd8\u6ca1\u6709\u6210\u4e3a\u6807\u51c6API\uff0c\u4f46\u662f\u5df2\u7ecf\u7ea6\u5b9a\u4fd7\u79f0\uff0c\u6216\u8005\u547c\u58f0\u5f88\u9ad8\uff0c\u6216\u8005\u5b98\u65b9\u5df2\u7ecf\u5f00\u59cb\u8003\u8651\uff0c\u4e5f\u5c31\u662f\u4f60\u77e5\u9053\u4ee5\u540e\u4f1a\u6709\u8fd9\u4e2aAPI\uff0c\u4f46\u662f\u76ee\u524d\u6d4f\u89c8\u5668\u90fd\u8fd8\u6ca1\u6709\u652f\u6301\u7684API\u7684\u5b9e\u73b0\u3002<\/p>\n<p>\u4f8b\u5982 <code>JSON.save<\/code> \u6216 <code>JSON.load<\/code> \u8fd9\u4e24\u4e2a<a href=\"https:\/\/github.com\/Kikobeats\/json-future\" rel=\"noopener\" target=\"_blank\">\u672a\u6765\u53ef\u80fd\u7684JSON\u65b9\u6cd5<\/a>\u3002<\/p>\n<h4>\u5bf9\u4e86\uff0c\u8fd8\u6709\u4e2a Nottifill<\/h4>\n<p>Nottifill\u8868\u793a\u6d4f\u89c8\u5668\u6216Node\u73af\u5883\u4ee5\u540e\u53ef\u80fd\u652f\u6301\u7684\u529f\u80fd\uff0c\u4f46\u662f\uff0c\u6ca1\u6709\u4efb\u4f55\u8349\u6848\u663e\u793a\uff0c\u7ec6\u8282\u5b9e\u73b0\u548c\u63cf\u8ff0\u90fd\u662f\u5f00\u53d1\u4eba\u5458\u81ea\u5df1\u5b9a\u4e49\u7684\u3002<\/p>\n<p>\u4f8b\u5982\uff0c10\u5e74\u524d jQuery\u4e2d\u7684 <code>remove()<\/code> \u65b9\u6cd5\uff0c<code>append()<\/code>\u65b9\u6cd5\u5c31\u6709\u8fd9\u79cd\u5473\u9053\u5728\u91cc\u9762\u3002<\/p>\n<h3>\u56db\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u4e0a\u4e86\u5e74\u7eaa\uff0c\u5fc3\u6001\u7a33\u4e86\uff0c\u5185\u5bb9\u4e5f\u5e73\u9759\u591a\u4e86\u3002<\/p>\n<p>\u8981\u662f\u5e74\u8f7b\u7684\u65f6\u5019\uff0c\u80af\u5b9a\u4e0d\u4f1a\u79f0\u201c\u5c0f\u9a6c\u586b\u5145\u201d\uff0c\u800c\u4f1a\u79f0\u201c\u9a6c\u5316\u817e\u586b\u5145\u201d\uff0c\u4fdd\u8bc1\u8bb0\u5fc6\u6df1\u523b\uff0c\u6570\u5e74\u90fd\u4e0d\u4f1a\u5fd8\u8bb0\u3002<\/p>\n<p>\u5c31\u8fd9\u5427\uff0c\u4e0d\u591a\u626f\u4e86\uff0c\u4eca\u5929\u4e8b\u513f\u592a\u591a\u4e86\uff0c\u672c\u5468\u8ba1\u5212\u4f30\u8ba1\u5b8c\u4e0d\u6210\u4e86\u3002<\/p>\n<p>\u6b22\u8fce\u5206\u4eab\uff0c\u6b22\u8fce\u4f20\u64ad\uff0c\u8ba9\u66f4\u591a\u4eba\u77e5\u9053\u8fd9\u51e0\u4e2a\u6982\u5ff5\u3002<\/p>\n<p>\u5bf9\u4e86\uff0c\u4e0b\u5468\u6211\u4f1a\u5728\u5fae\u535a\u548c\u6398\u91d1\uff08\u5173\u6ce8\u6211\u7684\u6cb8\u70b9\uff09\u4e0a\u8fdb\u884c\u65b0\u4e66\u7684\u62bd\u5956\uff0c\u5927\u5bb6\u53ef\u4ee5\u5173\u6ce8\u4e0b\uff0c\u5e94\u8be5\u90fd\u662f\u5468\u4e00\u53d1\uff08\u5982\u679c\u6211\u5fd8\u8bb0\u4e86\u90a3\u5c31\u662f\u5468\u4e8c\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\"  src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202108\/mybooks.jpg\" width=\"240\" height=\"320\" alt=\"\u6211\u7684\u65b0\u4e66\" class=\"alignnone size-medium\"><\/p>\n<p>\u611f\u8c22\u5927\u5bb6\u957f\u4e45\u4ee5\u6765\u7684\u652f\u6301\uff0c\u795d\u5927\u5bb6\u597d\u8fd0\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/2764.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u6536\u85cf\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u4e14\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10054\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=10054<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202108\/ponyfill-cover.jpg\" width=\"160\" height=\"110\" alt=\"\u9a6c\u513f\u7d20\u63cf\" class=\"alignright size-medium\" loading=\"lazy\" \/><\/p>\n<p>\u76f8\u4fe1\u4e0d\u5c11\u4eba\u77e5\u9053polyfill\u7684\u610f\u601d\uff0c\u90a3\u4e48ponyfill\u3001prollyfill\u4ee5\u53canottifill\u8fd9\u51e0\u4e2a\u8bcd\u662f\u4ec0\u4e48\u610f\u601d\u5462\uff1f\u672c\u6587\u4f1a\u89e3\u7b54\u76f8\u5173\u7684\u7591\u95ee\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[1291,1079,1774,1052,1773,1772],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/10054"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=10054"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/10054\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=10054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=10054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=10054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}