{"id":338,"date":"2023-01-11T21:13:14","date_gmt":"2023-01-11T13:13:14","guid":{"rendered":"https:\/\/www.ljcljc.cn\/?p=338"},"modified":"2024-04-08T10:27:03","modified_gmt":"2024-04-08T02:27:03","slug":"axios%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/","title":{"rendered":"Axios\u4f7f\u7528"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e00\u3001axios\u662f\u4ec0\u4e48\uff1f<\/h2>\n\n\n\n<p><strong>axios<\/strong>\u00a0\u662f\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u8bf7\u6c42\u5e93\uff0c\u57fa\u4e8epromise\u7684http\u5e93\uff0c<strong>\u53ef\u4ee5\u53d1\u9001get\u3001post\u8bf7\u6c42<\/strong>\uff0c\u4e5f\u662fVue\uff0cReact\u7684\u51fa\u73b0\u4fc3\u4f7faxios\u8f7b\u91cf\u7ea7\u5e93\u7684\u51fa\u73b0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u5728\u9879\u76ee\u4e2d\u5b89\u88c5axios\u5e93<\/h2>\n\n\n\n<p>\u6253\u5f00\u9879\u76ee\u76ee\u5f55\uff0c\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install axios -S<\/code><\/pre>\n\n\n\n<p>\u4e4b\u540e\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u5373\u53ef<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001GET\u8bf7\u6c42<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bf7\u6c42\u6a21\u677f<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>import axios from 'axios'  \/\/\u5f15\u5165axios\n\naxios.get('\u63a5\u53e3\u5730\u5740', {params: {\u53c2\u6570\u4e00:'\u503c' ,\u53c2\u6570\u4e8c:'\u503c', ...})\n  .then(res => {\n     \/*\n         res.data \u4e3a\u540e\u7aef\u63a5\u53e3\u8fd4\u56de\u7684json\u6570\u636e\n     *\/\n     console.log(res.data)  \/\/\u63a7\u5236\u53f0\u8f93\u51fa\u540e\u7aefjson\u6570\u636e\n  })\n  .catch(err => {\n     console.log(err)  \/\/\u63a7\u5236\u53f0\u8f93\u51fa\u5f02\u5e38\n  })<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bf7\u6c42\u793a\u4f8b<\/li>\n<\/ul>\n\n\n\n<p>\u4f8b\u5982\uff0c\u6211\u60f3\u901a\u8fc7GET\u8bf7\u6c42\u83b7\u53d6\u63a5\u53e3 <code>http:\/\/localhost:8080\/api\/getUserList?method=limit&amp;start=0&amp;end=10<\/code> \u4e2d\u7684\u6570\u636e\uff0c\u6211\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import axios from 'axios';  \/\/\u5f15\u5165axios\n\nexport default {\n  data() {\n    return {\n      tableData:&#91;]\n    }\n  },\n  methods: {\n    getUserList() {\n      axios.get('http:\/\/localhost:8080\/api\/getUserList', {params: {method:'limit' , start:'0', end:'10'})\n        .then(res =&gt; {\n           this.tableData = res.data  \/\/\u5c06\u540e\u7aef\u8fd4\u56de\u7684json\u5bf9\u8c61\u50a8\u5b58\u81f3tableData\u8fd9\u4e2a\u6570\u7ec4\u4e2d\n           console.log(res.data);  \/\/\u63a7\u5236\u53f0\u8f93\u51fa\u540e\u7aefjson\u6570\u636e\n        })\n        .catch(err =&gt; {\n           console.log(err);  \/\/\u63a7\u5236\u53f0\u8f93\u51fa\u5f02\u5e38\n        })\n      }\n    }\n  },\n  create() {\n    this.getUserList();\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0cparams\u4e3a\u53c2\u6570\u9009\u9879\uff0c\u6309\u9700\u6c42\u9009\u62e9\uff0c\u975e\u5fc5\u987b<\/p>\n\n\n\n<p>params\u4e2d\u7684\u53c2\u6570\u662f\u6dfb\u52a0\u5230url\u7684\u8bf7\u6c42\u5b57\u7b26\u4e32\u4e2d\u7684\uff0c\u7528\u4e8e<strong>GET<\/strong>\u8bf7\u6c42 <\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001POST\u8bf7\u6c42<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bf7\u6c42\u6a21\u677f<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>import axios from 'axios'  \/\/\u5f15\u5165axios\naxios.post('\u63a5\u53e3\u5730\u5740', {data: {\u53c2\u6570\u4e00:'\u503c' ,\u53c2\u6570\u4e8c:'\u503c', ...})\n  .then(res =&gt; {\n     \/*\n         res.data \u4e3a\u540e\u7aef\u63a5\u53e3\u8fd4\u56de\u7684json\u6570\u636e\n     *\/\n     console.log(res.data)  \/\/\u63a7\u5236\u53f0\u8f93\u51fa\u540e\u7aefjson\u6570\u636e\n  })\n  .catch(err =&gt; {\n     console.log(err)  \/\/\u63a7\u5236\u53f0\u8f93\u51fa\u5f02\u5e38\n  })<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bf7\u6c42\u793a\u4f8b<\/li>\n<\/ul>\n\n\n\n<p>\u4f8b\u5982\uff0c\u6211\u60f3\u901a\u8fc7POST\u8bf7\u6c42\uff0c\u5c06\u6570\u636e\u53d1\u9001\u5230\u63a5\u53e3 <code>http:\/\/localhost:8080\/api\/setUserData<\/code> \u4e2d\uff0c\u6211\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import axios from 'axios';  \/\/\u5f15\u5165axios\n\nexport default {\n  data() {\n    return {\n      formData:{\n        name: '\u674e\u9526\u6210',\n        gender: '\u7537',\n        age: '19'\n      }\n    }\n  },\n  methods: {\n    setUserData() {\n      axios.post('http:\/\/localhost:8080\/api\/getUserList', {data: formData})\n        .then(res => {\n           if(res.data.code === 200) { \/\/\u4ece\u540e\u7aef\u8fd4\u56de\u7684\u7ed3\u679c\u4e2d\u8bfb\u53d6\u72b6\u6001\u7801\uff08code\uff09\uff0c\u540e\u7aef\u4ee5\u72b6\u6001\u7801\u4e3a200\u4e3a\u6210\u529f\uff08\u6839\u636e\u63a5\u53e3\u800c\u5b9a\uff09\n             this.$message.success('\u64cd\u4f5c\u6210\u529f');\n           } else {\n             this.$message.error(res.data.msg);\n           }\n        })\n        .catch(err => {\n           console.log(err);  \/\/\u63a7\u5236\u53f0\u8f93\u51fa\u5f02\u5e38\n        })\n      }\n    }\n  } \/\/\u7ec4\u4ef6\u8c03\u7528\uff1a@click=\"setUserData\"\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u901a\u7528\u8bf7\u6c42<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>import axios from 'axios';  \/\/\u5f15\u5165axios\n\naxios({\n  method: '\u8bf7\u6c42\u65b9\u5f0f', \/\/ \u586bget\u6216post\n  url: '\u63a5\u53e3\u5730\u5740',\n\n  params: {json\u683c\u5f0f\u7684\u53c2\u6570}, \/\/ \u82e5\u4e3aget\u8bf7\u6c42\u5219\u4f7f\u7528params\n  data: {json\u683c\u5f0f\u7684\u6570\u636e}, \/\/ \u82e5\u4e3apost\u8bf7\u6c42\u5219\u4f7f\u7528data\n  headers: { \/\/\u8bf7\u6c42\u5934\uff0c\u9ed8\u8ba4\u662fContent-Type: application\/json\n    'Content-Type': 'Content-Type: application\/json'\n  }\n})\n  .then(res =&gt; {\n    console.log(res)  \/\/\u63a7\u5236\u53f0\u8f93\u51fa\u540e\u7aefjson\u6570\u636e\n  })\n  .catch(err =&gt; {\n    console.log(err)  \/\/\u63a7\u5236\u53f0\u8f93\u51fa\u5f02\u5e38\n  })<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u5173\u4e8eheaders<\/h3>\n\n\n\n<p>\u2460 &#8216;Content-Type: application\/json &#8216;\uff1a\u662f\u9ed8\u8ba4\u7684\u683c\u5f0f\u3002\u8bf7\u6c42\u4f53\u4e2d\u7684\u6570\u636e\u4f1a\u4ee5json\u5b57\u7b26\u4e32\u7684\u5f62\u5f0f\u53d1\u9001\u5230\u540e\u7aef\u3002<\/p>\n\n\n\n<p>\u2461 &#8216;Content-Type: application\/x-www-form-urlencoded&#8217;\uff1a\u8bf7\u6c42\u4f53\u4e2d\u7684\u6570\u636e\u4f1a\u4ee5\u666e\u901a\u8868\u5355\u5f62\u5f0f\uff08\u952e\u503c\u5bf9\uff09\u53d1\u9001\u5230\u540e\u7aef\u3002<\/p>\n\n\n\n<p>\u2462 &#8216;Content-Type: multipart\/form-data&#8217;\uff1a\u5b83\u4f1a\u5c06\u8bf7\u6c42\u4f53\u7684\u6570\u636e\u5904\u7406\u4e3a\u4e00\u6761\u6d88\u606f\uff0c\u4ee5\u6807\u7b7e\u4e3a\u5355\u5143\uff0c\u7528\u5206\u9694\u7b26\u5206\u5f00\u3002\u65e2\u53ef\u4ee5\u4e0a\u4f20\u952e\u503c\u5bf9\uff0c\u4e5f\u53ef\u4ee5\u4e0a\u4f20\u6587\u4ef6\u3002<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001axios\u662f\u4ec0\u4e48\uff1f axios\u00a0\u662f\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u8bf7\u6c42\u5e93\uff0c\u57fa\u4e8epromise\u7684http\u5e93\uff0c\u53ef\u4ee5\u53d1\u9001get\u3001p [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-338","post","type-post","status-publish","format-standard","hentry","category-vue-js"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Axios\u4f7f\u7528 - LJC&#039;s blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Axios\u4f7f\u7528 - LJC&#039;s blog\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001axios\u662f\u4ec0\u4e48\uff1f axios\u00a0\u662f\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u8bf7\u6c42\u5e93\uff0c\u57fa\u4e8epromise\u7684http\u5e93\uff0c\u53ef\u4ee5\u53d1\u9001get\u3001p [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/\" \/>\n<meta property=\"og:site_name\" content=\"LJC&#039;s blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-11T13:13:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-08T02:27:03+00:00\" \/>\n<meta name=\"author\" content=\"\u674e \u9526\u6210\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u674e \u9526\u6210\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/\"},\"author\":{\"name\":\"\u674e \u9526\u6210\",\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46\"},\"headline\":\"Axios\u4f7f\u7528\",\"datePublished\":\"2023-01-11T13:13:14+00:00\",\"dateModified\":\"2024-04-08T02:27:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/\"},\"wordCount\":31,\"publisher\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46\"},\"articleSection\":[\"Vue.js\u5b66\u4e60\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/\",\"url\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/\",\"name\":\"Axios\u4f7f\u7528 - LJC&#039;s blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/#website\"},\"datePublished\":\"2023-01-11T13:13:14+00:00\",\"dateModified\":\"2024-04-08T02:27:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.ljcljc.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Axios\u4f7f\u7528\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.ljcljc.cn\/#website\",\"url\":\"https:\/\/blog.ljcljc.cn\/\",\"name\":\"LJC&#039;s blog\",\"description\":\"\u5c0f\u6210\u77e5\u8bc6\u5e93\",\"publisher\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.ljcljc.cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46\",\"name\":\"\u674e \u9526\u6210\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/g.jpg\",\"contentUrl\":\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/g.jpg\",\"width\":500,\"height\":500,\"caption\":\"\u674e \u9526\u6210\"},\"logo\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/blog.ljcljc.cn\/index.php\/author\/ljc\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Axios\u4f7f\u7528 - LJC&#039;s blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/","og_locale":"zh_CN","og_type":"article","og_title":"Axios\u4f7f\u7528 - LJC&#039;s blog","og_description":"\u4e00\u3001axios\u662f\u4ec0\u4e48\uff1f axios\u00a0\u662f\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u8bf7\u6c42\u5e93\uff0c\u57fa\u4e8epromise\u7684http\u5e93\uff0c\u53ef\u4ee5\u53d1\u9001get\u3001p [&hellip;]","og_url":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/","og_site_name":"LJC&#039;s blog","article_published_time":"2023-01-11T13:13:14+00:00","article_modified_time":"2024-04-08T02:27:03+00:00","author":"\u674e \u9526\u6210","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u674e \u9526\u6210","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/#article","isPartOf":{"@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/"},"author":{"name":"\u674e \u9526\u6210","@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46"},"headline":"Axios\u4f7f\u7528","datePublished":"2023-01-11T13:13:14+00:00","dateModified":"2024-04-08T02:27:03+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/"},"wordCount":31,"publisher":{"@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46"},"articleSection":["Vue.js\u5b66\u4e60"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/","url":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/","name":"Axios\u4f7f\u7528 - LJC&#039;s blog","isPartOf":{"@id":"https:\/\/blog.ljcljc.cn\/#website"},"datePublished":"2023-01-11T13:13:14+00:00","dateModified":"2024-04-08T02:27:03+00:00","breadcrumb":{"@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/01\/11\/338\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.ljcljc.cn\/"},{"@type":"ListItem","position":2,"name":"Axios\u4f7f\u7528"}]},{"@type":"WebSite","@id":"https:\/\/blog.ljcljc.cn\/#website","url":"https:\/\/blog.ljcljc.cn\/","name":"LJC&#039;s blog","description":"\u5c0f\u6210\u77e5\u8bc6\u5e93","publisher":{"@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.ljcljc.cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46","name":"\u674e \u9526\u6210","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/image\/","url":"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/g.jpg","contentUrl":"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/g.jpg","width":500,"height":500,"caption":"\u674e \u9526\u6210"},"logo":{"@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/image\/"},"url":"https:\/\/blog.ljcljc.cn\/index.php\/author\/ljc\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/comments?post=338"}],"version-history":[{"count":23,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":362,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts\/338\/revisions\/362"}],"wp:attachment":[{"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/categories?post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}