{"id":6368,"date":"2017-08-24T01:09:19","date_gmt":"2017-08-23T17:09:19","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=6368"},"modified":"2022-12-08T17:10:26","modified_gmt":"2022-12-08T09:10:26","slug":"iframe-html5-blob-code-view","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2017\/08\/iframe-html5-blob-code-view\/","title":{"rendered":"iframe\u548cHTML5 blob\u5b9e\u73b0JS,CSS,HTML\u76f4\u63a5\u5f53\u524d\u9875\u9884\u89c8"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=6368\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=6368<\/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\u5173\u4e8e\u524d\u7aef\u4ee3\u7801\u6548\u679c\u5b9e\u65f6\u9884\u89c8<\/h3>\n<p>\u524d\u7aef\u4ee3\u7801\u6548\u679c\u5b9e\u65f6\u9884\u89c8\u7684\u9700\u6c42\u5b9e\u9645\u4e0a\u662f\u975e\u5e38\u5e38\u89c1\u7684\uff0c\u4f8b\u5982jsbin\uff0ccodepen\uff0crunjs\u4e4b\u7c7b\u7684\u7f51\u7ad9\u5c31\u662f\u6ee1\u8db3\u6b64\u9700\u6c42\u7684\u3002\u8fd9\u4e9b\u7ad9\u70b9\u53ef\u4ee5\u65b9\u4fbf\u5feb\u6377\u7684\u8ba9\u6211\u4eec\u6d4b\u8bd5\u4e00\u4e9b\u524d\u7aef\u5c5e\u6027\u7684\u4f5c\u7528\u548c\u8868\u73b0\uff0c\u8fd8\u53ef\u4ee5\u5236\u4f5c\u53ef\u7f16\u8f91\u53ef\u5206\u4eab\u7684\u5728\u7ebfdemo\uff0c\u9047\u5230\u68d8\u624b\u6216\u8005\u4e0d\u660e\u767d\u95ee\u9898\u7684\u65f6\u5019\uff0c\u7ed9\u5bf9\u65b9\u4e00\u4e2a\u8fd9\u6837\u7684\u5728\u7ebfdemo\u5730\u5740\u662f\u6700\u53cb\u597d\u7684\u505a\u6cd5\u3002<\/p>\n<p>\u5f53\u7136\u9700\u6c42\u573a\u666f\u8fd8\u4e0d\u6b62\u8fd9\u4e9b\uff0c\u6bd4\u65b9\u8bf4\u6211\u4eec\u5236\u4f5c\u4e00\u4e9b\u5de5\u5177\uff0c\u4f8b\u5982\u7c7b\u4f3c<a href=\"http:\/\/yutu.qq.com\/\" target=\"_blank\">\u7389\u5154<\/a>\u8fd9\u6837\u7684H5\u5236\u4f5c\u5de5\u5177\uff0c\u5c31\u6709\u80fd\u591f\u5b9e\u65f6\u9884\u89c8\u6700\u7ec8\u6548\u679c\u7684\u9700\u6c42\u3002\u53c8\u6216\u8005\u8bf4\u6211\u4eec\u5199\u6280\u672f\u6587\u7ae0\u7684\u65f6\u5019\uff0c\u6587\u7ae0\u91cc\u9762\u5d4c\u5165\u7684\u6e90\u4ee3\u7801\uff0c\u5e0c\u671b\u53ef\u4ee5\u76f4\u63a5\u8dd1\u8d77\u6765\u3002<\/p>\n<p>\u4f20\u7edf\u505a\u6cd5\u662f\u8fd9\u6837\u5b50\u7684\uff0c\u4f1a\u65b0\u5efa\u4e00\u4e2a\u53e6\u5916\u7684\u72ec\u7acb\u9875\u9762\uff0c\u4e13\u95e8\u7528\u6765\u63a5\u6536\u4f20\u5165\u7684\u524d\u7aef\u4ee3\u7801\uff0c\u901a\u8fc7\u65b0\u5f00\u7a97\u53e3\u6216\u8005\u5d4c\u5165iframe\u9875\u9762\u7684\u65b9\u5f0f\u8fbe\u5230\u6700\u7ec8\u6548\u679c\uff0c\u5176\u4e2d\u53ef\u80fd\u4f1a\u7528\u5230<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/2012\/02\/html5-web-messaging-cross-document-messaging-channel-messaging\/\">HTML5 postMessage\u7b49\u901a\u4fe1\u6280\u672f<\/a>\u3002<\/p>\n<p>\u7136\u800c\u5b9e\u9645\u4e0a\uff0c\u5bf9\u4e8e\u8fd9\u4e2a\u9884\u89c8\u6548\u679c\uff0c\u5982\u679c\u4ee3\u7801\u662f\u6211\u4eec\u81ea\u5df1\u63a7\u5236\uff0c\u800c\u4e0d\u662f\u5168\u6743\u4ea4\u7ed9\u7528\u6237\u7f16\u8f91\u7684\uff0c\u662f\u6ca1\u6709\u5fc5\u8981\u65b0\u5efa\u4e00\u4e2a\u53e6\u5916\u7684\u9884\u89c8\u9875\u9762\uff0c\u4ea6\u6216\u8005\u662f\u5728\u65b0\u7a97\u53e3\uff08\u65b0\u6807\u7b7e\u9875\uff09\u4e2d\u6d4f\u89c8\u7684\u3002\u53ef\u4ee5\u76f4\u63a5\u5728\u5f53\u524d\u9875\u9762\u6784\u5efa\u4e00\u4e2a\u6587\u6863\u4e0a\u4e0b\u6587\uff0c\u5b9e\u73b0\u66f4\u52a0\u65b9\u4fbf\u5feb\u6377\u7684\u9884\u89c8\u3002<\/p>\n<h3>\u4e8c\u3001\u501f\u52a9iframe\u548cblob\u5b9e\u73b0\u524d\u7aef\u4ee3\u7801\u7684\u5b9e\u65f6\u9884\u89c8<\/h3>\n<p>\u6211\u4eec\u76f4\u63a5\u770b\u4e00\u4e2a\u4f8b\u5b50\uff08\u5982\u679c\u6ca1\u6709\u6548\u679c\uff0c\u8bf7\u524d\u5f80<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=6368\">\u6587\u7ae0\u539f\u51fa\u5904<\/a>\u4f53\u9a8c\uff09\uff0c\u5982\u4e0bCSS\u548cHTML\u4ee3\u7801\uff08\u7eafCSS\u5b9e\u73b0\u4e86\u4e00\u4e2a\u6c34\u6ce2\u8361\u6f3e\u7684<a href=\"https:\/\/codepen.io\/josephrexme\/pen\/jLzxdd\" target=\"_blank\">\u6548\u679c<\/a>\uff09\uff1a<\/p>\n<style>.btn-run{position:absolute; height:32px;font-size:16px; width:120px;top: 5px; right: 5px;background-color:#cd0000;color:#fff;border:0;}.btn-run + .btn-run{top:auto;bottom:5px;}<\/style>\n<div style=\"position:relative;\"><button class=\"btn-run\">\u8fd0\u884c<\/button><button class=\"btn-run\">\u8fd0\u884c<\/button><\/div>\n<pre>&lt;style&gt;\r\nhtml {\r\n  height: 100vh;\r\n}\r\nbody {\r\n  height: inherit;\r\n  background: #2e576b;\r\n  display: -ms-grid;\r\n  display: grid;\r\n}\r\n.container {\r\n  margin: auto;\r\n}\r\n.card {\r\n  position: relative;\r\n  width: 300px; height: 350px;\r\n  background: #fff;\r\n  border-radius: 2px;\r\n  box-shadow: 0 2px 15px 3px rgba(0, 0, 0, 0.08);\r\n  overflow: hidden;\r\n}\r\n.card::after {\r\n  content: '';\r\n  display: block;\r\n  width: 100%;  height: 100%;\r\n  background: linear-gradient(to bottom, #0065a8, rgba(221, 238, 255, 0.4) 46%, rgba(255, 255, 255, 0.5));\r\n}\r\n.wave {\r\n  position: absolute;\r\n  top: 3%; left: 50%;\r\n  width: 400px;  height: 400px;\r\n  margin-top: -200px; margin-left: -200px;\r\n  background: #0af;\r\n  border-radius: 40%;\r\n  opacity: .4;\r\n  animation: shift 3s infinite linear;\r\n}\r\n.wave.w2 {\r\n  background: yellow;\r\n  opacity: .1;\r\n  animation: shift 7s infinite linear;\r\n}\r\n.wave.w3 {\r\n  animation: shift 5s infinite linear;\r\n  background: crimson;\r\n  opacity: 0.1;\r\n}\r\n@-webkit-keyframes shift {\r\n  from {\r\n    transform: rotate(360deg);\r\n  }\r\n}\r\n@keyframes shift {\r\n  from {\r\n    transform: rotate(360deg);\r\n  }\r\n}\r\n&lt;\/style&gt;\r\n\r\n&lt;div class=\"container\"&gt;\r\n  &lt;div class=\"card\"&gt;\r\n    &lt;div class=\"wave w1\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"wave w2\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"wave w3\"&gt;&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p><textarea id=\"codeArea\" style=\"display:none;\"><\/p>\n<style>html {  height: 100vh;overflow:hidden;}body {  height: inherit;  background: #2e576b;  display: -ms-grid;  display: grid;}.container {  margin: auto;}.card {  position: relative;  width: 300px;  height: 350px;  background: #fff;  border-radius: 2px;  box-shadow: 0 2px 15px 3px rgba(0, 0, 0, 0.08);  overflow: hidden;}.card::after {  content: '';  display: block;  width: 100%;  height: 100%;  background: -webkit-linear-gradient(top, #0065a8, rgba(221, 238, 255, 0.4) 46%, rgba(255, 255, 255, 0.5));  background: linear-gradient(to bottom, #0065a8, rgba(221, 238, 255, 0.4) 46%, rgba(255, 255, 255, 0.5));}.wave {  position: absolute;  top: 3%;  left: 50%;  width: 400px;  height: 400px;  margin-top: -200px;  margin-left: -200px;  background: #0af;  border-radius: 40%;  opacity: .4;  -webkit-animation: shift 3s infinite linear;          animation: shift 3s infinite linear;}.wave.w2 {  background: yellow;  opacity: .1;  -webkit-animation: shift 7s infinite linear;          animation: shift 7s infinite linear;}.wave.w3 {  -webkit-animation: shift 5s infinite linear;          animation: shift 5s infinite linear;  background: crimson;  opacity: 0.1;}@-webkit-keyframes shift {  from {    -webkit-transform: rotate(360deg);            transform: rotate(360deg);  }}@keyframes shift {  from {    -webkit-transform: rotate(360deg);            transform: rotate(360deg);  }}<\/style>\n<div class=\"container\">\n<div class=\"card\">\n<div class=\"wave w1\"><\/div>\n<div class=\"wave w2\"><\/div>\n<div class=\"wave w3\"><\/div>\n<\/div>\n<\/div>\n<p><\/textarea><\/p>\n<p>\u70b9\u51fb\u4ee3\u7801\u6f14\u793a\u533a\u57df\u53f3\u4e0a\u89d2\u6216\u53f3\u4e0b\u89d2\u7684\u8fd0\u884c\u6309\u94ae\uff0c\u6b64\u65f6\u8fd9\u6bb5\u4ee3\u7801\u7684\u6548\u679c\u5c31\u5e72\u5e72\u51c0\u51c0\uff08\u4e0d\u53d7\u5f53\u524d\u9875CSS\uff0cJS\u5e72\u6270\uff09\u5730\u5728\u5f53\u524d\u9875\u9762\u663e\u793a\u4e86\uff08\u70b9\u51fb\u9875\u9762\u7a7a\u767d\u533a\u57df\u9690\u85cf\uff09\u3002<\/p>\n<p><script>[].slice.call(document.querySelectorAll('.btn-run')).forEach(function (btn) {btn.onclick = function() {var iframe = document.createElement('iframe');iframe.setAttribute('style', 'width:600px;max-width:98%;max-height:600px;height:98vh;position:fixed;border:1px solid;outline:9999px solid rgba(0,0,0,.6);top:0;right:0;left:0;bottom:0;margin:auto;overflow:hidden;');iframe.src = URL.createObjectURL(new Blob([document.getElementById('codeArea').value],{\"type\":\"text\/html\"}));document.body.appendChild(iframe);document.codeIframe=iframe;};});document.body.addEventListener('mouseup', function() { if (document.codeIframe){document.body.removeChild(document.codeIframe);document.codeIframe=null;} });<\/script><\/p>\n<p>\u70b9\u51fb\u540e\u9875\u9762\u622a\u56fe\u5982\u4e0b\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201708\/2017-08-24_004751.png\" width=\"469\" height=\"488\" alt=\"\u9875\u9762\u4ee3\u7801\u5b9e\u65f6\u9884\u89c8\u6548\u679c\" class=\"alignnone\" \/><\/p>\n<p><strong>\u6838\u5fc3\u539f\u7406\uff1a<\/strong><br \/>\n\u6b64\u6548\u679c\u5b9e\u73b0\u7684\u6838\u5fc3\u539f\u7406\u662f\uff1a<\/p>\n<ol>\n<li>\u521b\u5efa<code>&lt;iframe&gt;<\/code>\u5143\u7d20\uff1b<\/li>\n<li>\u5c06CSS\uff0cHTML\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a<code>Blob<\/code>\u5bf9\u8c61\uff1b<\/li>\n<li>\u4f7f\u7528<code>URL.createObjectURL()<\/code>\u65b9\u6cd5\u5c06<code>Blob<\/code>\u5bf9\u8c61\u8f6c\u6362\u4e3aURL\u5bf9\u8c61\u5e76\u8d4b\u4e88\u6211\u4eec\u521b\u5efa\u7684<code>&lt;iframe&gt;<\/code>\u5143\u7d20\u7684<code>src<\/code>\u5c5e\u6027\uff1b<\/li>\n<\/ol>\n<p>\u4f7f\u7528JavaScript\u4ee3\u7801\u8868\u793a\u66f4\u52a0\u4e00\u76ee\u4e86\u7136\uff1a<\/p>\n<pre>\r\n<span style=\"color:green;\">\/\/ 1. \u521b\u5efa<code>&lt;iframe&gt;<\/code>\u5143\u7d20<\/span>\r\nvar iframe = document.createElement('iframe');\r\n<span style=\"color:green;\">\/\/ 2. \u5c06CSS\uff0cHTML\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a<code>Blob<\/code>\u5bf9\u8c61<\/span>\r\nvar blob = new Blob([htmlCode], {\r\n  'type': 'text\/html'\r\n});\r\n<span style=\"color:green;\">\/\/ 3. \u4f7f\u7528<code>URL.createObjectURL()<\/code>\u65b9\u6cd5\u5c06...<\/span>\r\niframe.src = URL.createObjectURL(blob);\r\n<\/pre>\n<p><strong>\u9700\u8981\u6ce8\u610f<\/strong>\u7684\u662f\uff0c\u5f53\u6211\u4eec\u4f7f\u7528 <code>new Blob()<\/code> \u5bf9\u6211\u4eec\u7684\u5b57\u7b26\u6570\u636e\u8fdb\u884c\u8f6c\u6362\u7684\u65f6\u5019\uff0c\u4e00\u5b9a\u8981\u6307\u5b9a<code>type<\/code>\u4e3a<code>text\/html<\/code>\uff0c\u5426\u5219\uff0cHTML\u4ee3\u7801\u4f1a\u88ab\u81ea\u52a8\u8f6c\u79fb\u4e3a\u5b89\u5168\u7684\u7eaf\u6587\u672c\u663e\u793a\u5728<code>&lt;iframe&gt;<\/code>\u5143\u7d20\u4e2d\u3002<\/p>\n<p><strong>\u517c\u5bb9\u6027<\/strong><br \/>\nIE\u6d4f\u89c8\u5668\u9057\u61be\u5e76\u4e0d\u652f\u6301<code>src<\/code>\u76f4\u63a5\u662fURL\u5bf9\u8c61\u3002<\/p>\n<p>\u6240\u4ee5\u6b64\u6280\u672f\u53ea\u9002\u7528\u4e8e\u5bf9\u517c\u5bb9\u6027\u6ca1\u6709\u4e25\u683c\u8981\u6c42\u7684\u4e00\u4e9b\u9879\u76ee\u3002<\/p>\n<h3>\u4e09\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u5176\u5b9e\u5f88\u591a\u6548\u679c\uff0c\u6211\u4eec\u76f4\u63a5\u5728\u7ed3\u675f\u5f53\u524d\u9875\u9762\u7684window\u4e0a\u4e0b\u6587\u9884\u89c8\u4e5f\u6ca1\u4ec0\u4e48\uff0c\u4f46\u662f\u6709\u4e00\u4e9b\u6548\u679c\u5c31\u4e0d\u884c\uff0c\u4f8b\u5982\uff0c\u9884\u89c8\u9488\u5bf9\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684<code>media<\/code>\u5c4f\u5e55\u5bbd\u5ea6\u67e5\u8be2\u4e0b\u7684\u6548\u679c\uff0c\u5fc5\u987b\u662f\u771f\u5b9e\u7684\u7a97\u4f53\u5bbd\u5ea6\u624d\u4f1a\u89e6\u53d1CSS\u67e5\u8be2\u8bed\u53e5\u7684\u6267\u884c\uff0c\u6b64\u65f6\uff0c\u53ea\u80fd\u5728<code>&lt;iframe&gt;<\/code>\u4e2d\u9884\u89c8\uff0c\u6211\u4eec\u53ea\u8981\u628a<code>&lt;iframe&gt;<\/code>\u5143\u7d20\u5bbd\u5ea6\u8bbe\u7f6e\u5230\u6211\u4eec\u9700\u8981\u7684\u5927\u5c0f\u5c31\u53ef\u4ee5\u4e86\uff0c\u4f8b\u5982\uff0c\u9700\u8981\u9884\u89c8\u7c7b\u4f3c\u5982\u4e0bCSS\u4ee3\u7801\u6548\u679c\uff1a<\/p>\n<pre>@media screen and (max-width:480px) {\r\n    img { max-width: 100%; }\r\n}<\/pre>\n<p>\u53ea\u8981\u8bbe\u7f6e<code>&lt;iframe&gt;<\/code>\u5143\u7d20\u5bbd\u5ea6\u4e3a<code>480<\/code>\u50cf\u7d20\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u5185\u5bb9\uff0c\u5e0c\u671b\u80fd\u5bf9\u4f60\u7684\u9879\u76ee\u5f00\u53d1\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<p>\u611f\u8c22\u9605\u8bfb\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=6368\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=6368<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u7aef\u4ee3\u7801\u6548\u679c\u5b9e\u65f6\u9884\u89c8\u7684\u9700\u6c42\u5b9e\u9645\u4e0a\u662f\u975e\u5e38\u5e38\u89c1\u7684\uff0c\u4f20\u7edf\u505a\u6cd5\u662f\u8fd9\u6837\u5b50\u7684\uff0c\u4f1a\u65b0\u5efa\u4e00\u4e2a\u53e6\u5916\u7684\u72ec\u7acb\u9875\u9762\uff0c\u4e13\u95e8\u7528\u6765\u63a5\u6536\u4f20\u5165\u7684\u524d\u7aef\u4ee3\u7801\uff0c\u901a\u8fc7\u65b0\u5f00\u7a97\u53e3\u6216\u8005\u5d4c\u5165iframe\u9875\u9762\u7684\u65b9\u5f0f\u8fbe\u5230\u6700\u7ec8\u6548\u679c\uff0c\u7136\u800c\u5b9e\u9645\u4e0a\uff0c\u5bf9\u4e8e\u8fd9\u4e2a\u9884\u89c8\u6548\u679c\uff0c\u5982\u679c\u4ee3\u7801\u662f\u6211\u4eec\u81ea\u5df1\u63a7\u5236\uff0c\u800c\u4e0d\u662f\u5168\u6743\u4ea4\u7ed9\u7528\u6237\u7f16\u8f91\u7684\uff0c\u662f\u6ca1\u6709\u5fc5\u8981\u65b0\u5efa\u4e00\u4e2a\u53e6\u5916\u7684\u9884\u89c8\u9875\u9762\uff0c\u4ea6\u6216\u8005\u662f\u5728\u65b0\u7a97\u53e3\uff08\u65b0\u6807\u7b7e\u9875\uff09\u4e2d\u6d4f\u89c8\u7684\u3002\u53ef\u4ee5\u76f4\u63a5\u5728\u5f53\u524d\u9875\u9762\u6784\u5efa\u4e00\u4e2a\u6587\u6863\u4e0a\u4e0b\u6587\uff0c\u5b9e\u73b0\u66f4\u52a0\u65b9\u4fbf\u5feb\u6377\u7684\u9884\u89c8\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[180],"tags":[872,1161,532,446],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/6368"}],"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=6368"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/6368\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=6368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=6368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=6368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}