{"id":7438,"date":"2018-03-23T00:25:21","date_gmt":"2018-03-22T16:25:21","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=7438"},"modified":"2018-08-06T13:25:43","modified_gmt":"2018-08-06T05:25:43","slug":"web-animations-api-dynamic-feature-animation","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2018\/03\/web-animations-api-dynamic-feature-animation\/","title":{"rendered":"\u501f\u52a9Web Animations API\u5b9e\u73b0JS keyframes\u52a8\u753b"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=7438\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=7438<\/a><br \/>\n\u672c\u6587\u53ef\u5168\u6587\u8f6c\u8f7d\uff0c\u4f46\u9700\u5f97\u5230\u539f\u4f5c\u8005\u4e66\u9762\u8bb8\u53ef\uff0c\u540c\u65f6\u4fdd\u7559\u539f\u4f5c\u8005\u548c\u51fa\u5904\uff0c\u6458\u8981\u5f15\u6d41\u5219\u968f\u610f\u3002<\/p>\n<h3>\u4e00\u3001\u4e00\u53e5\u8bdd\u89e3\u91caWeb Animations API<\/h3>\n<p>\u7528\u4e00\u53e5\u8bdd\u89e3\u91caWeb Animations API\u5c31\u662f\u628aCSS3\u5b9e\u73b0\u7684animation\u52a8\u753b\u53d8\u6210\u6709JS\u4ee3\u7801\u5b9e\u73b0\u3002<\/p>\n<p>\u5404\u6709\u4f18\u52bf\u3002CSS3 Animations\u52a8\u753b\u7b80\u5355\uff0c\u7075\u6d3b\uff0c\u590d\u7528\u6027\u5f3a\uff0c\u975e\u5e38\u9002\u5408\u9759\u6001\u52a8\u753b\u6548\u679c\uff1bWeb Animations\u53c2\u6570\u7531JS\u63a7\u5236\uff0c\u4e0e\u5355\u4e2a\u5143\u7d20\u7ed1\u5b9a\uff0c\u56e0\u6b64\u975e\u5e38\u9002\u5408\u4e0d\u56fa\u5b9a\u7684\u52a8\u6001\u52a8\u753b\u6548\u679c\uff0c\u4f8b\u5982\u968f\u673a\u52a8\u753b\u3002<\/p>\n<h3>\u4e8c\u3001Web Animations API\u4f7f\u7528\u5178\u578b\u793a\u610f<\/h3>\n<p>\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre>var myAnimation = element.animate(keyframes, options);<\/pre>\n<p>\u5176\u4e2d<code>keyframes<\/code>\u5bf9\u5e94CSS3\u4e2d@keyframes\u4e2d\u7684\u58f0\u660e\u5757\uff0c<code>options<\/code>\u5bf9\u5e94<code>animation-*<\/code>\u5c5e\u6027\u53ca\u5c5e\u6027\u503c\u3002myAnimation\u4e3a\u52a8\u753b\u7684Animation\u5bf9\u8c61\uff0c\u5305\u542b\u591a\u79cd\u65b9\u6cd5\u3002<\/p>\n<p>\u6240\u6709\u65b9\u6cd5\u4ee5\u53ca\u5c5e\u6027\uff0c\u4ee5\u53ca\u5f53\u524d\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301\uff0c\u53ef\u53c2\u89c1\u4e0b\u9762\u4fe1\u606f\uff08\u7ffb\u8bd1\u81ea<a href=\"https:\/\/codepen.io\/danwilson\/pen\/xGBKVq\" rel=\"noopener\" target=\"_blank\">\u6b64CodePen<\/a>\uff09:<\/p>\n<p><iframe loading=\"lazy\" src=\"\/study\/201803\/web-animation-support.html\" width=\"100%\" height=\"600\" frameborder=\"0\" style=\"max-width:750px;\"><\/iframe><\/p>\n<h4>Web Animations API\u4f7f\u7528demo<\/h4>\n<p>\u62ff\u6de1\u51fa\u518d\u6de1\u5165\u6548\u679c\u4e3e\u4f8b\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u5e38\u89c1\u5c5e\u6027\u51fa\u52a8\u7684\u4e00\u4e2aJS\u4ee3\u7801\u793a\u610f\uff1a<\/p>\n<pre>element.animate([\n  { opacity: 0 },\n  { opacity: 1, offset: 0.4 },\n  { opacity: 0 }\n], {\n  duration: 3000,\n  delay: 0,\n  fill: 'forwards',\n  easing: 'steps(8, end)',\n  iterations: Infinity\n});<\/pre>\n<p>\u6700\u7ec8\u6548\u679c\u5982\u4e0bGIF\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201803\/web-ani-fade-s.gif\" width=\"198\" height=\"158\" alt=\"web animation\u52a8\u753b\u622a\u56fe\u793a\u610f\" class=\"alignnone\" \/><\/p>\n<p>\u82e5\u8981\u81ea\u5df1\u4eb2\u81ea\u96f6\u8ddd\u79bb\u611f\u53d7\u6548\u679c\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201803\/web-animation-fadein-fadeout.html\" rel=\"noopener\" target=\"_blank\">Web Animations\u5b9e\u73b0\u5143\u7d20\u7684\u6de1\u5165\u6de1\u51fademo<\/a><\/p>\n<h4>Web Animations API\u5e38\u7528\u5c5e\u6027\u8bf4\u660e<\/h4>\n<p><code>keyframes<\/code>\u901a\u5e38\u6211\u4eec\u4f7f\u7528\u4e00\u4e2a\u6570\u7ec4\uff0c\u6570\u7ec4\u503c\u90fd\u662f\u5b58\u5728\u52a8\u753b\u5173\u952e\u5e27\u6570\u636e\u7684\u7eaf\u5bf9\u8c61\uff0c\u91cc\u9762\u6709CSS\u952e\u503c\u5bf9\uff0c\u8fd8\u6709\u5176\u4ed6\u4e00\u4e9b\u53c2\u6570\uff0c\u4f8b\u5982<code>offset<\/code>\u5bf9\u5e94CSS3 animation\u4e2d\u7684\u767e\u5206\u6bd4\uff0c<code>{ opacity: 1, offset: 0.4 }<\/code>\u7b49\u540c\u4e8eCSS\u4e2d<code>40% { opacity: 1; }<\/code>\uff0c\u4e5f\u5c31\u662f\u52a8\u753b\u8fdb\u7a0b<code>40%<\/code>\u4f4d\u7f6e\u900f\u660e\u5ea6\u4e3a<code>1<\/code>\uff0c\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u4e0a\u9762GIF\u622a\u56fe\u4e2d\u7ea2\u8272\u5706\u51fa\u73b0\u901f\u5ea6\u8981\u6bd4\u6d88\u5931\u5feb\u7684\u539f\u56e0\u3002<\/p>\n<p><code>options<\/code>\u53ef\u4ee5\u76f4\u63a5\u662f\u52a8\u753b\u65f6\u95f4\u957f\u5ea6\uff0c\u53c8\u6216\u8005\u662f\u5bf9\u8c61\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>element.animate([\n  { opacity: 0 },\n  { opacity: 1 }\n], 3000);<\/pre>\n<p>\u5c31\u662f\u4e2a3\u79d2\u6de1\u51fa\u6548\u679c\uff0c\u4e0d\u8fc7\u662f<code>'linear'<\/code>\u7ebf\u6027\u7684\uff0c\u8fd9\u4e2a\u548cCSS3 animation\u9ed8\u8ba4\u662f<code>'ease'<\/code>\u7c7b\u578b\u52a8\u753b\u4e0d\u540c\u3002\u3002<\/p>\n<p>\u5982\u679c<code>options<\/code>\u662f\u4f7f\u7528\u7eaf\u5bf9\u8c61\u4f5c\u4e3a\u53c2\u6570\uff0c\u5219\u57fa\u672c\u4e0a\u548cCSS3 animation\u4e2d\u7684\u51e0\u4e2a\u5c5e\u6027\u60f3\u5bf9\u5e94\uff0c\u4f8b\u5982\uff1a<code>duration<\/code>\u8868\u793a\u65f6\u957f\uff1b<code>delay<\/code>\u8868\u793a\u52a8\u753b\u5ef6\u8fdf\u6267\u884c\u65f6\u95f4\uff1b<code>fill<\/code>\u8868\u793a\u52a8\u753b\u524d\u540e\u4fdd\u6301\u7684\u72b6\u6001\uff0c<code>easing<\/code>\u8868\u793a\u7f13\u52a8\u7c7b\u578b\uff0c\u6307\u4e3a<code>steps()<\/code>\u65f6\u5019\u8868\u793a\u65ad\u7247\u5206\u6b65\u8d70\uff1b<code>iterations<\/code>\u8868\u793a\u52a8\u753b\u6267\u884c\u6b21\u6570\uff0c\u5982\u679c\u65e0\u9650\u6b21\uff0c\u5219\u4f7f\u7528JavaScript\u4e2d\u7684\u5173\u952e\u5b57<code>Infinity<\/code>\uff0c\u6ce8\u610f\uff0c\u4e0d\u8981\u548cCSS3\u52a8\u753b\u4e2d\u7684<code>infinite<\/code>\u62fc\u5199\u641e\u6df7\uff0c\u6700\u540e\u4e00\u4e2a\u5b57\u6bcd\u4e0d\u4e00\u6837\u3002<\/p>\n<h3>\u4e09\u3001Web Animations\u8bed\u6cd5\u6587\u6863<\/h3>\n<p>Web Animations\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u975e\u5e38\u65b9\u4fbf\u6765\u63a7\u5236\u52a8\u753b\u7684\u65b9\u6cd5\u3002\u4f8b\u5982\uff1a<\/p>\n<style>.entry dt {font-weight:bold;}<\/style>\n<dl>\n<dt>myAnimation.cancel()<\/dt>\n<dd>\u53d6\u6d88\u52a8\u753b\uff0c\u4f1a\u7acb\u5373\u6e05\u9664\u6240\u6709\u7684\u5173\u952e\u5e27\u6548\u679c\u3002<\/dd>\n<dt>myAnimation.finish()<\/dt>\n<dd>\u52a8\u753b\u76f4\u63a5\u7ed3\u675f\u3002<\/dd>\n<dt>myAnimation.pause()<\/dt>\n<dd>\u52a8\u753b\u6682\u505c\u3002<\/dd>\n<dt>myAnimation.play()<\/dt>\n<dd>\u52a8\u753b\u7ee7\u7eed\u3002<\/dd>\n<dt>myAnimation.reverse()<\/dt>\n<dd>\u52a8\u753b\u53cd\u8fc7\u6765\u64ad\u653e\uff0c\u76f4\u5230\u64ad\u653e\u5230\u52a8\u753b\u5f00\u59cb\u65f6\u505c\u6b62\u3002 \u5982\u679c\u52a8\u753b\u5b8c\u6210\u6216\u672a\u64ad\u653e\uff0c\u5b83\u5c06\u4ece\u5934\u5230\u5c3e\u64ad\u653e\u3002<\/dd>\n<dt>myAnimation.updatePlaybackRate()<\/dt>\n<dd>\u5728\u7b2c\u4e00\u6b21\u540c\u6b65\u64ad\u653e\u4f4d\u7f6e\u540e\u8bbe\u7f6e\u52a8\u753b\u7684\u901f\u5ea6\u3002\u5982\u679c\u8bbe\u7f6e\u7684\u503c\u6bd4<code>1<\/code>\u5927\uff0c\u52a0\u901f\uff0c\u5982\u679c\u6bd4<code>1<\/code>\u5c0f\uff0c\u5219\u51cf\u901f\u3002\u76f8\u6bd4\u76f4\u63a5\u8bbe\u7f6eplaybackRate\u5c5e\u6027\u503c\uff0c<code>updatePlaybackRate()<\/code>\u65b9\u6cd5\u4e0d\u4f1a\u51fa\u73b0\u52a8\u753b\u56e0\u4e3a\u901f\u5ea6\u53d8\u5316\u7a81\u7136\u8df3\u4e00\u4e0b\u7684\u60c5\u51b5\u53d1\u751f\uff0c\u56e0\u4e3a\u65b9\u6cd5\u5185\u90e8\u505a\u4e86\u4f18\u5316\u3002<\/dd>\n<\/dl>\n<p>\u4e8b\u4ef6\u63a5\u53e3\u5982\u4e0b\uff1a<\/p>\n<dl>\n<dt>myAnimation.oncancel<\/dt>\n<dd>\u52a8\u753b\u53d6\u6d88\u89e6\u53d1\u7684\u56de\u8c03<\/dd>\n<dt>myAnimation.onfinish<\/dt>\n<dd>\u52a8\u753b\u7ed3\u675f\u89e6\u53d1\u7684\u56de\u8c03<\/dd>\n<\/dl>\n<p>\u4e2a\u4eba\u89c9\u5f97\u4f7f\u7528\u4e0a\u8981\u6bd4CSS\u52a8\u753b\u89e6\u53d1\u7684animationend\u65b9\u6cd5\u8981\u7b80\u5355\u4e9b\u3002<\/p>\n<p>\u4e00\u4e9b\u5c5e\u6027\u5982\u4e0b\uff1a<\/p>\n<dl>\n<dt>myAnimation.currentTime<\/dt>\n<dd>\u52a8\u753b\u5f53\u524d\u65f6\u95f4\u503c\uff0c\u5355\u4f4d\u6beb\u79d2\uff0c\u65e0\u8bba\u52a8\u753b\u6682\u505c\u4e0e\u5426\u53c8\u4f1a\u6709\u3002\u5982\u679c\u52a8\u753b\u7f3a\u5931\u65f6\u95f4\u7ebf\uff0c\u6216\u8005\u672a\u6267\u884c\uff0c\u6216\u8005\u672a\u6fc0\u6d3b\uff0c\u5219\u8fd4\u56de\u503c\u662f<code>null<\/code>.<\/dd>\n<dt>myAnimation.effect<\/dt>\n<dd>\u83b7\u53d6\u6216\u8bbe\u7f6e\u52a8\u753b\u6548\u679c\uff0c\u901a\u5e38\u662f\u4e2a\u5173\u952e\u5e27\u6548\u679c\u5bf9\u8c61\u3002\u5982\u4e0b\u622a\u56fe\u6548\u679c\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201803\/2018-03-23_000436.png\" width=\"306\" height=\"260\" alt=\"\u52a8\u753b\u6548\u679c\u5bf9\u8c61\u503c\" class=\"alignnone\" \/>\n<\/dd>\n<dt>myAnimation.finished<\/dt>\n<dd>\u53ea\u8bfb\u3002\u8fd4\u56de\u5f53\u524d\u52a8\u753b\u5df2\u5b8c\u6210\u7684Promise\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201803\/2018-03-23_000659.png\" width=\"259\" height=\"105\" alt=\"finished\u7684Promise\u622a\u56fe\" class=\"alignnone\" \/><\/dd>\n<dt>myAnimation.id<\/dt>\n<dd>\u83b7\u53d6\u6216\u8005\u8fd9\u662f\u52a8\u753b\u552f\u4e00\u7684\u5b57\u7b26\u6807\u8bc6\u3002\u9ed8\u8ba4\u83b7\u53d6\u7684\u503c\u662f\u7a7a\u5b57\u7b26\u4e32\u3002<\/dd>\n<dt>myAnimation.pending<\/dt>\n<dd>\u53ea\u8bfb\u3002\u52a8\u753b\u5f53\u524d\u662f\u5426\u662f\u7b49\u5f85\u5176\u4ed6\u5f02\u6b65\u64cd\u4f5c\u5b8c\u6210\u7684\u7b49\u5f85\u72b6\u6001\uff0c\u4f8b\u5982\u542f\u52a8\u64ad\u653e\u6216\u8005\u6682\u505c\u4e00\u4e2a\u6b63\u5728\u8dd1\u7684\u52a8\u753b\u3002<\/dd>\n<dt>myAnimation.playState<\/dt>\n<dd>\u53ea\u8bfb\u3002\u5f53\u524d\u52a8\u753b\u64ad\u653e\u7684\u72b6\u6001\uff0c\u4f8b\u5982\u64ad\u653e\u4e2d\u7684\u52a8\u753b\u7684\u8fd4\u56de\u503c\u5c31\u662f<code>'running'<\/code>\u3002<\/dd>\n<dt>myAnimation.playbackRate<\/dt>\n<dd>\u83b7\u53d6\u6216\u8bbe\u7f6e\u52a8\u753b\u64ad\u653e\u901f\u7387\u3002\u9ed8\u8ba4\u7684\u7ebf\u6027\u52a8\u753b\u7684<code>playbackRate<\/code>\u503c\u662f<code>1<\/code>\u3002<\/dd>\n<dt>myAnimation.ready <\/dt>\n<dd>\u53ea\u8bfb\u3002\u8fd4\u56de\u5f53\u524d\u52a8\u753b\u51c6\u5907\u7684Promise\u3002<\/dd>\n<dt>myAnimation.startTime<\/dt>\n<dd>\u83b7\u53d6\u6216\u8bbe\u7f6e\u52a8\u753b\u5f00\u59cb\u64ad\u653e\u65f6\u7684\u9884\u5b9a\u65f6\u95f4\u3002<\/dd>\n<dt>myAnimation.timeline<\/dt>\n<dd>\u83b7\u53d6\u6216\u8bbe\u7f6e\u4e0e\u6b64\u52a8\u753b\u76f8\u5173\u8054\u7684\u65f6\u95f4\u7ebf\u3002<\/dd>\n<\/dl>\n<h3>\u56db\u3001\u7ed3\u675f\u8bed<\/h3>\n<p><strong>\u517c\u5bb9\u6027<\/strong><br \/>\n\u76ee\u524d\u4ec5Chrome\u6d4f\u89c8\u5668\u548cFirefox\u6d4f\u89c8\u5668\u539f\u751f\u652f\u6301\uff0cFirefox\u5df2\u7ecf\u5b8c\u5168\u652f\u6301\u3002\u81f3\u4e8eiOS Safari\u548c\u684c\u9762Safari\u53ea\u80fd\u4f5c\u4e3a\u5b9e\u9a8c\u6027\u8d28\u5c5e\u6027\u4f7f\u7528\uff0c\u4f46\u662f\u6ca1\u6709\u5173\u7cfb\uff0c\u8fd9\u5e76\u4e0d\u5f71\u54cd\u6211\u4eec\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u4f7f\u7528\uff0c\u56e0\u4e3a\u6709polyfill\uff1a<a href=\"https:\/\/github.com\/web-animations\/web-animations-js\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/web-animations\/web-animations-js<\/a><\/p>\n<p>\u6211\u521a\u6d4b\u8bd5\u4e86\u4e0b\uff0cIE11\u6d4f\u89c8\u5668\u4e5f\u662fOK\u7684\uff08\u4e3b\u8981\u529f\u80fd\u548c\u5c5e\u6027\u90fd\u652f\u6301\uff09\uff0c\u5219Safari\u4e00\u5b9a\u6ca1\u95ee\u9898\uff0c\u610f\u5473\u7740\u79fb\u52a8\u7aef\u662f\u53ef\u4ee5\u7528\u8d77\u6765\u7684\u3002<\/p>\n<p>\u7b80\u5355\u4ecb\u7ecd\uff0c\u7b80\u5355\u4e86\u89e3\u3002\u5173\u4e8eWeb Animations\u66f4\u6df1\u5165\u7684\u4f7f\u7528\u66f4\u5b9e\u9645\u7684\u6848\u4f8b\uff0c\u6211\u4eec\u4ee5\u540e\u6709\u673a\u4f1a\u5728\u5206\u4eab\u3002<\/p>\n<p>\u611f\u8c22\u9605\u8bfb\uff0c\u6b22\u8fce\u4ea4\u6d41\uff01<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201611\/14.png\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u4f1a\u7ecf\u5e38\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u4e00\u4e9b\u9519\u8bef\uff0c\u56e0\u6b64\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u539f\u51fa\u5904\uff0c\u65b9\u4fbf\u6eaf\u6e90\uff0c\u907f\u514d\u9648\u65e7\u9519\u8bef\u77e5\u8bc6\u7684\u8bef\u5bfc\uff0c\u540c\u65f6\u6709\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=7438\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=7438<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u4e00\u53e5\u8bdd\u89e3\u91caWeb Animations API\u5c31\u662f\u628aCSS3\u5b9e\u73b0\u7684animation\u52a8\u753b\u53d8\u6210\u6709JS\u4ee3\u7801\u5b9e\u73b0\u3002<\/p>\n<p>\u5404\u6709\u4f18\u52bf\u3002CSS3 Animations\u52a8\u753b\u7b80\u5355\uff0c\u7075\u6d3b\uff0c\u590d\u7528\u6027\u5f3a\uff0c\u975e\u5e38\u9002\u5408\u9759\u6001\u52a8\u753b\u6548\u679c\uff1bWeb Animations\u53c2\u6570\u7531JS\u63a7\u5236\uff0c\u4e0e\u5355\u4e2a\u5143\u7d20\u7ed1\u5b9a\uff0c\u56e0\u6b64\u975e\u5e38\u9002\u5408\u4e0d\u56fa\u5b9a\u7684\u52a8\u6001\u52a8\u753b\u6548\u679c\uff0c\u4f8b\u5982\u968f\u673a\u52a8\u753b\u2026\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1284],"tags":[531,266,1228,204],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/7438"}],"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=7438"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/7438\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=7438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=7438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=7438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}