{"id":800,"date":"2021-08-16T10:23:36","date_gmt":"2021-08-16T02:23:36","guid":{"rendered":"https:\/\/fireinsect.top\/?p=800"},"modified":"2021-08-16T17:22:14","modified_gmt":"2021-08-16T09:22:14","slug":"vue%e4%b9%8b%e8%b7%af%e7%94%b1","status":"publish","type":"post","link":"https:\/\/fireinsect.top\/index.php\/2021\/08\/16\/vue%e4%b9%8b%e8%b7%af%e7%94%b1\/","title":{"rendered":"Vue\u4e4b\u8def\u7531(Router)"},"content":{"rendered":"\n<p>\u4e86\u89e3\u8def\u7531\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u7406\u89e3\u4e00\u4e2a\u6982\u5ff5\uff1a\u5355\u9875\u5e94\u7528\u3002<br><\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-large-font-size\">\u5355\u9875\u5e94\u7528<\/p>\n\n\n\n<p>SPA(single page application):\u5355\u4e00\u9875\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ea\u6709\u4e00\u4e2a\u5b8c\u6574\u7684\u9875\u9762\uff1b\u5b83\u5728\u52a0\u8f7d\u9875\u9762\u65f6\uff0c\u4e0d\u4f1a\u52a0\u8f7d\u6574\u4e2a\u9875\u9762\uff0c\u800c\u662f\u53ea\u66f4\u65b0\u67d0\u4e2a\u6307\u5b9a\u7684\u5bb9\u5668\u4e2d\u5185\u5bb9\u3002\u5355\u9875\u9762\u5e94\u7528(SPA)\u7684\u6838\u5fc3\u4e4b\u4e00\u662f: \u66f4\u65b0\u89c6\u56fe\u800c\u4e0d\u91cd\u65b0\u8bf7\u6c42\u9875\u9762\u3002<\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-large-font-size\">\u8def\u7531<\/p>\n\n\n\n<p>\u8fd9\u91cc\u7684\u8def\u7531\u6307\u7684\u662fSPA\uff08\u5355\u9875\u5e94\u7528\uff09\u7684\u8def\u5f84\u7ba1\u7406\u5668\u3002vue\u7684\u5355\u9875\u9762\u5e94\u7528\u5c06\u8def\u5f84\u548c\u7ec4\u4ef6\u6620\u5c04\u8d77\u6765\uff0c\u8def\u7531\u7528\u4e8e\u8bbe\u5b9a\u8bbf\u95ee\u8def\u5f84\uff0c\u7531\u8def\u5f84\u4e4b\u95f4\u7684\u5207\u6362\uff0c\u5b9e\u73b0\u7ec4\u4ef6\u7684\u5207\u6362\u3002<\/p>\n\n\n\n<p><br>\u8def\u7531\u6a21\u5757\u7684\u672c\u8d28\u5c31\u662f\u5efa\u7acb\u8d77 url \u548c\u9875\u9762\u4e4b\u95f4\u7684\u6620\u5c04\u5173\u7cfb\u3002<\/p>\n\n\n\n<div style=\"height:38px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-large-font-size\">\u914d\u7f6e\u8def\u7531<\/p>\n\n\n\n<p>\u5728main.js\u4e2d\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\"><em>\/\/ 0. \u5bfc\u5165 Vue \u548c VueRouter\uff0c\u8981\u8c03\u7528 Vue.use(VueRouter)<\/em>\n<strong>import<\/strong> Vue <strong>from<\/strong> 'vue'\n<strong>import<\/strong> VueRouter <strong>from<\/strong> 'vue-router'\n\nVue.use(VueRouter)\n\n<em>\/\/ 1. \u5b9a\u4e49 (\u8def\u7531) \u7ec4\u4ef6\u3002<\/em>\n<em>\/\/ \u53ef\u4ee5\u4ece\u5176\u4ed6\u6587\u4ef6 import \u8fdb\u6765<\/em>\n<strong>import<\/strong> Foo <strong>from<\/strong> \".\/views\/Foo.vue\";\n<strong>import<\/strong> Bar <strong>from<\/strong> \".\/views\/Bar.vue\";\n\n<em>\/\/ 2. \u5b9a\u4e49\u8def\u7531<\/em>\n<em>\/\/ \u6bcf\u4e2a\u8def\u7531\u5e94\u8be5\u6620\u5c04\u4e00\u4e2a\u7ec4\u4ef6\u3002 \u5176\u4e2d\"component\" \u53ef\u4ee5\u662f<\/em>\n<em>\/\/ \u901a\u8fc7 Vue.extend() \u521b\u5efa\u7684\u7ec4\u4ef6\u6784\u9020\u5668\uff0c<\/em>\n<em>\/\/ \u6216\u8005\uff0c\u53ea\u662f\u4e00\u4e2a\u7ec4\u4ef6\u914d\u7f6e\u5bf9\u8c61\u3002<\/em>\n<em>\/\/ \u6211\u4eec\u665a\u70b9\u518d\u8ba8\u8bba\u5d4c\u5957\u8def\u7531\u3002<\/em>\n<strong>const<\/strong> routes = [\n  { path: '\/foo', component: Foo },\n  { path: '\/bar', component: Bar }\n]\n\n<em>\/\/ 3. \u521b\u5efa router \u5b9e\u4f8b\uff0c\u7136\u540e\u4f20 `routes` \u914d\u7f6e<\/em>\n<em>\/\/ \u4f60\u8fd8\u53ef\u4ee5\u4f20\u522b\u7684\u914d\u7f6e\u53c2\u6570, \u4e0d\u8fc7\u5148\u8fd9\u4e48\u7b80\u5355\u7740\u5427\u3002<\/em>\n<strong>const<\/strong> router = <strong>new<\/strong> VueRouter({\n  routes <em>\/\/ (\u7f29\u5199) \u76f8\u5f53\u4e8e routes: routes<\/em>\n})\n\n<em>\/\/ 4. \u521b\u5efa\u548c\u6302\u8f7d\u6839\u5b9e\u4f8b\u3002<\/em>\n<em>\/\/ \u8bb0\u5f97\u8981\u901a\u8fc7 router \u914d\u7f6e\u53c2\u6570\u6ce8\u5165\u8def\u7531\uff0c<\/em>\n<em>\/\/ \u4ece\u800c\u8ba9\u6574\u4e2a\u5e94\u7528\u90fd\u6709\u8def\u7531\u529f\u80fd<\/em>\n<strong>const<\/strong> app = <strong>new<\/strong> Vue({\n  router\n}).$mount('#app')<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d\u5bfc\u5165\u8def\u7531\u9664\u4e86\u53ef\u4ee5\u4f7f\u7528import\u518d\u5728 routes\u4e2d\u5b9a\u4e49\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5b9a\u4e49<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\"><strong>const<\/strong> routes = [\n  { path: '\/foo', component: () =&gt; <strong>import<\/strong>('.\/views\/Foo.vue') },\n  { path: '\/bar', component: () =&gt; <strong>import<\/strong>('.\/views\/Bar.vue') },\n  { path: '\/user', component: () =&gt; <strong>import<\/strong>('.\/views\/User.vue') }\n];<\/code><\/pre>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-large-font-size\">\u8def\u7531\u7684\u4f7f\u7528<\/p>\n\n\n\n<p>\u6211\u4eec\u4f7f\u7528 &lt;router-link&gt; \u6807\u7b7e\u6765\u8868\u793a\u8def\u7531\u5bfc\u822a\uff0c\u4f7f\u7528 &lt;router-view&gt;\u8868\u793a\u8def\u7531\u51fa\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;template&gt;\n  &lt;div id=\"app\"&gt;\n    &lt;h1&gt;Hello App!&lt;\/h1&gt;\n    &lt;p&gt;\n      <em>&lt;!-- \u4f7f\u7528 router-link \u7ec4\u4ef6\u6765\u5bfc\u822a. --&gt;<\/em>\n      <em>&lt;!-- \u901a\u8fc7\u4f20\u5165 `to` \u5c5e\u6027\u6307\u5b9a\u94fe\u63a5. --&gt;<\/em>\n      <em>&lt;!-- &lt;router-link&gt; \u9ed8\u8ba4\u4f1a\u88ab\u6e32\u67d3\u6210\u4e00\u4e2a `&lt;a&gt;` \u6807\u7b7e --&gt;<\/em>\n      &lt;router-link to=\"\/foo\"&gt;Go to Foo&lt;\/router-link&gt;\n      &lt;router-link to=\"\/bar\"&gt;Go to Bar&lt;\/router-link&gt;\n    &lt;\/p&gt;\n    <em>&lt;!-- \u8def\u7531\u51fa\u53e3 --&gt;<\/em>\n    <em>&lt;!-- \u8def\u7531\u5339\u914d\u5230\u7684\u7ec4\u4ef6\u5c06\u6e32\u67d3\u5728\u8fd9\u91cc --&gt;<\/em>\n    <em>&lt;!-- App.vue \u4e2d\u7684 &lt;router-view&gt;&lt;\/router-view&gt; \u662f\u8def\u7531\u7684\u6700\u9ad8\u7ea7\u51fa\u53e3 --&gt;<\/em>\n    &lt;router-view&gt;&lt;\/router-view&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p> &lt;router-link&gt; \u5b58\u5728\u4e00\u4e2a\u5c5e\u6027 to\uff0c\u8fd9\u4e2a\u5c5e\u6027\u6307\u5b9a\u7684\u8def\u5f84\uff0c\u6839\u636e\u6211\u4eec\u914d\u7f6e\u7684\u8def\u7531\u4e2d\u8def\u5f84\u5bf9\u5e94\u7684\u7ec4\u4ef6\u3002<\/p>\n\n\n\n<p> &lt;router-view> \u76f8\u5bf9\u4e8e\u4e00\u4e2a\u63d2\u69fd\uff0c\u5b83\u6240\u5728\u7684\u4f4d\u7f6e\u5c06\u6e32\u67d3\u8def\u7531\u5339\u914d\u5230\u7684\u7ec4\u4ef6\u3002<\/p>\n\n\n\n<div style=\"height:23px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-medium-font-size\">\u547d\u540d\u8def\u7531<\/p>\n\n\n\n<p>\u8def\u7531\u662f\u53ef\u4ee5\u547d\u540d\u7684\uff0c\u901a\u8fc7\u547d\u540d\u53ef\u4ee5\u5b9e\u73b0\u8def\u7531\u7684\u6307\u5b9a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\"><em>\/\/ 0. \u5bfc\u5165 Album\u3001List\u3001Add\u3001Empty \u4e09\u4e2a\u7ec4\u4ef6<\/em>\n\n<em>\/\/ 1. \u5b9a\u4e49\u8def\u7531<\/em>\n<strong>const<\/strong> routes = [\n  { path: '\/foo',\n    name: 'fooName',\n    component: () =&gt; <strong>import<\/strong>('.\/views\/Foo.vue')\n  }\n];<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u547d\u540d\u8df3\u8f6c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\"><em>&lt;!-- to \u7684\u503c\u662f\u4e00\u4e2a\u5bf9\u8c61\u800c\u4e0d\u662f\u5b57\u7b26\u4e32\uff0c\u6240\u4ee5\u8981\u5728 to \u524d\u52a0 : --><\/em>\n&lt;router-link :to=\"{name: 'fooName'}\">Go to Foo&lt;\/router-link><\/code><\/pre>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-large-font-size\">\u8def\u7531\u5e03\u5c40\u7ba1\u7406<\/p>\n\n\n\n<p>\u5728\u8def\u7531\u4f7f\u7528\u65f6\uff0c\u6211\u4eec\u4f1a\u7528\u5230\u591a\u5c42\u8def\u7531<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/document.youkeda.com\/P3-5-Vue\/6\/2.gif?w=1170&#038;ssl=1\" alt=\"\" data-recalc-dims=\"1\"\/><figcaption>\u5728\u4f7f\u7528\u8def\u7531\u65f6\uff0c\u540c\u4e3a\u8def\u7531\u5185\u5bb9\u7684 banner\u6ca1\u6709\u56e0\u4e3a\u65b0\u7684\u8def\u7531\u5bfc\u822a\u800c\u6539\u53d8\uff0c\u539f\u56e0\u662f\u5b58\u5728\u591a\u6b21\u8def\u7531<\/figcaption><\/figure>\n\n\n\n<p>\u5206\u89e3\uff1a<\/p>\n\n\n\n<p>App.vue\u7ec4\u4ef6\uff08\u7236\u7ec4\u4ef6\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;template&gt;\n  &lt;div id=\"app\"&gt;\n    &lt;h1&gt;Hello App!&lt;\/h1&gt;\n    &lt;p&gt;\n      &lt;router-link to=\"\/album\/list\"&gt;Go to Album List&lt;\/router-link&gt;\n      |\n      &lt;router-link to=\"\/album\/add\"&gt;Go to Album Add&lt;\/router-link&gt;\n    &lt;\/p&gt;\n    <em>&lt;!-- \u8def\u7531\u5339\u914d\u5230\u7684\u7ec4\u4ef6\u5c06\u6e32\u67d3\u5728\u8fd9\u91cc --&gt;<\/em>\n    <em>&lt;!-- \u5728\u672c\u4f8b\u4e2d\u4e3a Album.vue \u7ec4\u4ef6 --&gt;<\/em>\n    &lt;router-view&gt;&lt;\/router-view&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<div style=\"height:7px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Album.vue\u7ec4\u4ef6\uff08\u7b2c\u4e00\u5c42\u5b50\u7ec4\u4ef6\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;template&gt;\n  &lt;div id=\"album\"&gt;\n    &lt;div class=\"banner\"&gt;banner&lt;\/div&gt;\n    <em>&lt;!-- \u8def\u7531\u5339\u914d\u5230\u7684\u7ec4\u4ef6\u5c06\u6e32\u67d3\u5728\u8fd9\u91cc --&gt;<\/em>\n    <em>&lt;!-- \u5728\u672c\u4f8b\u4e2d\u4e3a List.vue \u7ec4\u4ef6\u6216 Add.vue \u7ec4\u4ef6 --&gt;<\/em>\n    &lt;router-view&gt;&lt;\/router-view&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<div style=\"height:9px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>List.vue,Add.vue\u7ec4\u4ef6\uff08\u7b2c\u4e8c\u6b21\u5b50\u7ec4\u4ef6\uff09\u7565<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\"><strong>const<\/strong> routes = [\n  {\n    path: '\/album',\n    component: Album,\n    <em>\/\/ children \u5c5e\u6027\u53ef\u4ee5\u7528\u6765\u914d\u7f6e\u4e0b\u4e00\u7ea7\u8def\u7531\uff08\u5b50\u8def\u7531\uff09<\/em>\n    children: [\n      { path: 'list', component: List },\n      { path: 'add', component: Add }\n    ]\n  }\n];<\/code><\/pre>\n\n\n\n<p>\u603b\u7ed3\u6765\u8bf4\uff0c\u5728\u8def\u7531\u4e2d\uff0c\u53ef\u4ee5\u5728\u67d0\u4e00\u8def\u7531\u4e0b\u6dfb\u52a0 children \u6765\u8868\u793a\u6b21\u7ea7\u8def\u7531\uff0c\u6b64\u65f6\u7236\u8def\u7531\u8981\u4ee5 \u2018\/\u2019 \u5f00\u5934\u4ee5\u8868\u793a\u4e3a\u6839\u76ee\u5f55\uff0c\u5728\u4f7f\u7528\u65f6\uff0c\u5b50\u8def\u7531\u548c\u7236\u8def\u7531\u95f4\u4e5f\u8981\u7528 \u2018\/\u2019 \u9694\u5f00\u3002<\/p>\n\n\n\n<p>\u8868\u793a\u5b50\u8def\u7531\u65f6\u53ef\u4ee5\u4f7f\u7528<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">path: 'list'\npath: '\/album\/list'<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4e24\u79cd\u65b9\u5f0f\u6765\u8868\u793a\uff0c\u4f46\u5982 <code>\/list<\/code> \u662f\u4e0d\u884c\u7684\uff0c\u52a0\u4e0a\u2018\/\u2019\u4f1a\u8868\u793a\u4e3a\u6839\u76ee\u5f55\u4f1a\u5bfc\u81f4\u5b50\u7ec4\u4ef6\u76f4\u63a5\u6e32\u67d3\u3002<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<p>\u6ce8\uff1a\u5b58\u5728\u7a7a\u8def\u7531<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">{ path: '', component: Empty },<\/code><\/pre>\n\n\n\n<div style=\"height:33px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-large-font-size\">\u52a8\u6001\u8def\u7531<\/p>\n\n\n\n<p>\u6211\u4eec\u4f1a\u9047\u4e0a\u591a\u4e2a\u5730\u5740\u5bf9\u5e94\u4e00\u4e2a\u8def\u7531\u7684\u60c5\u51b5\u5982\u7528\u6237\u9875\u9762  \/user\/100 \u548c \/user\/200 \u4e24\u4e2a\u7528\u6237\u754c\u9762\u90fd\u4f7f\u7528\u4e86\u4e00\u4e2a\u7ec4\u4ef6\uff0c\u6b64\u65f6\u6211\u4eec\u9700\u8981\u52a8\u6001\u8def\u7531\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\"><strong>import<\/strong> User <strong>from<\/strong> \".\/views\/User.vue\";\n\n<strong>const<\/strong> routes = [\n  <em>\/\/ id \u5c31\u662f\u8def\u5f84\u53c2\u6570<\/em>\n  { path: '\/user\/:id', component: User }\n]<\/code><\/pre>\n\n\n\n<p>id \u4e3a\u8def\u5f84\u53c2\u6570\uff0c\u4e00\u4e2a\u201c\u8def\u5f84\u53c2\u6570\u201d\u524d\u9700\u8981\u4f7f\u7528\u5192\u53f7 \uff1a\u6807\u8bb0\u3002\u5f53 url \u5339\u914d\u5230\u8def\u7531\u4e2d\u7684\u4e00\u4e2a\u8def\u5f84\u65f6\uff0c\u53c2\u6570\u503c\u4f1a\u88ab\u8bbe\u7f6e\u5230<code>this.$route.params.id <\/code>\u91cc\uff0c\u53ef\u4ee5\u5728\u7ec4\u4ef6\u5185\u8bfb\u53d6\u5230\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\u5982\u679c\u4e3a \/user\/200 \u5219 <code>this.$route.params.id<\/code>  \u7684\u503c\u5c31\u662f200<\/p>\n\n\n\n<div style=\"height:12px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-large-font-size\">\u6355\u83b7404\u754c\u9762<\/p>\n\n\n\n<p>\u5f53\u7528\u6237\u8f93\u5165\u7684url\u4e0d\u5c5e\u4e8e\u4efb\u4f55\u4e00\u4e2a\u8def\u7531\u65f6\uff0c\u6211\u4eec\u4e00\u8fb9\u4f7f\u7528404 NotFound\u7ec4\u4ef6\u6765\u6e32\u67d3 \u8fd9\u91cc\u6211\u4eec\u7528\u901a\u914d\u7b26\u2018*\u2019\u6765\u5339\u914d\u4efb\u610f\u8def\u5f84<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\"><strong>import<\/strong> NotFound <strong>from<\/strong> \".\/views\/NotFound.vue\";\n\n<strong>const<\/strong> routes = [\n  {\n    <em>\/\/ \u4f1a\u5339\u914d\u6240\u6709\u8def\u5f84<\/em>\n    path: '*',\n    component: NotFound\n  }\n]<\/code><\/pre>\n\n\n\n<p>\u6ce8\u610f\uff1a\u5f53\u4f7f\u7528\u901a\u914d\u7b26\u914d\u7f6e\u8def\u7531\u65f6\uff0c\u5e94\u7528\u901a\u914d\u7b26\u7684\u8def\u7531\u5e94\u8be5\u653e\u5728\u6700\u540e\uff08\u8def\u7531\u5339\u914d\u662f\u6309\u987a\u5e8f\u7684\uff09<\/p>\n\n\n\n<p>\u5f53\u4f7f\u7528\u4e86\u901a\u914d\u7b26\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">this.$route.params.pathMatch<\/code><\/pre>\n\n\n\n<p>\u6765\u8bfb\u53d6\u8def\u5f84<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3\u8def\u7531\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u7406\u89e3\u4e00\u4e2a\u6982\u5ff5\uff1a\u5355\u9875\u5e94\u7528\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-800","post","type-post","status-publish","format-standard","hentry","category-5"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/posts\/800"}],"collection":[{"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/comments?post=800"}],"version-history":[{"count":8,"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":809,"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/posts\/800\/revisions\/809"}],"wp:attachment":[{"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/media?parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/categories?post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fireinsect.top\/index.php\/wp-json\/wp\/v2\/tags?post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}