<?xml version="1.0"?>
<oembed><version>1.0</version><provider_name>&#x7ECF;&#x9A8C;&#x5206;&#x4EAB;</provider_name><provider_url>https://mi-blog.cn</provider_url><author_name>&#x7C73;&#x9633;</author_name><author_url>https://mi-blog.cn/index.php/author/webdami/</author_url><title>vue2&#x603B;&#x7ED3;&#x5DE9;&#x56FA;-axios - &#x7ECF;&#x9A8C;&#x5206;&#x4EAB;</title><type>rich</type><width>600</width><height>338</height><html>&lt;blockquote class="wp-embedded-content" data-secret="SMBnhzB1cC"&gt;&lt;a href="https://mi-blog.cn/index.php/2020/01/19/vue2%e6%80%bb%e7%bb%93%e5%b7%a9%e5%9b%ba-axios/"&gt;vue2&#x603B;&#x7ED3;&#x5DE9;&#x56FA;-axios&lt;/a&gt;&lt;/blockquote&gt;&lt;iframe sandbox="allow-scripts" security="restricted" src="https://mi-blog.cn/index.php/2020/01/19/vue2%e6%80%bb%e7%bb%93%e5%b7%a9%e5%9b%ba-axios/embed/#?secret=SMBnhzB1cC" width="600" height="338" title="&#x300A; vue2&#x603B;&#x7ED3;&#x5DE9;&#x56FA;-axios &#x300B;&#x2014;&#x7ECF;&#x9A8C;&#x5206;&#x4EAB;" data-secret="SMBnhzB1cC" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"&gt;&lt;/iframe&gt;&lt;script type="text/javascript"&gt;
/* &lt;![CDATA[ */
/*! This file is auto-generated */
!function(d,l){"use strict";l.querySelector&amp;&amp;d.addEventListener&amp;&amp;"undefined"!=typeof URL&amp;&amp;(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&amp;&amp;!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i&lt;o.length;i++)o[i].style.display="none";for(i=0;i&lt;a.length;i++)s=a[i],e.source===s.contentWindow&amp;&amp;(s.removeAttribute("style"),"height"===t.message?(1e3&lt;(r=parseInt(t.value,10))?r=1e3:~~r&lt;200&amp;&amp;(r=200),s.height=r):"link"===t.message&amp;&amp;(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&amp;&amp;n.host===r.host&amp;&amp;l.activeElement===s&amp;&amp;(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r&lt;s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document);
//# sourceURL=https://mi-blog.cn/wp-includes/js/wp-embed.min.js
/* ]]&gt; */
&lt;/script&gt;
</html><thumbnail_url>https://mi-blog.cn/wp-content/uploads/2020/01/57b83612e327bebcd47431d4589e1a27.jpg</thumbnail_url><thumbnail_width>479</thumbnail_width><thumbnail_height>270</thumbnail_height><description>1&#x3001;vue&#x672C;&#x8EAB;&#x4E0D;&#x652F;&#x6301;&#x53D1;&#x9001;AJAX&#x8BF7;&#x6C42;&#xFF0C;&#x9700;&#x8981;&#x4F7F;&#x7528;vue-resource&#xFF08;vue1.0&#x7248;&#x672C;&#xFF09;&#x3001;axios&#xFF08;vue2.0&#x7248;&#x672C;&#xFF09;&#x7B49;&#x63D2;&#x4EF6;&#x5B9E;&#x73B0; 2&#x3001;axios&#x662F;&#x4E00;&#x4E2A;&#x57FA;&#x4E8E;Promise&#x7684;HTTP&#x8BF7;&#x6C42;&#x5BA2;&#x6237;&#x7AEF;&#xFF0C;&#x7528;&#x6765;&#x53D1;&#x9001;&#x8BF7;&#x6C42;&#xFF0C;&#x4E5F;&#x662F;vue2.0&#x5B98;&#x65B9;&#x63A8;&#x8350;&#x7684;&#xFF0C;&#x540C;&#x65F6;&#x4E0D;&#x518D;&#x5BF9;vue-resource&#x8FDB;&#x884C;&#x66F4;&#x65B0;&#x548C;&#x7EF4;&#x62A4; 3&#x3001;&#x53C2;&#x8003;&#xFF1A;GitHub&#x4E0A;&#x641C;&#x7D22;axios&#xFF0C;&#x67E5;&#x770B;API&#x6587;&#x6863; npm install axios&#xA0; &#xA0; &#xA0; &#xA0; &#xA0;#&#x76F4;&#x63A5;&#x4E0B;&#x8F7D;axios&#x7EC4;&#x4EF6; 1&#x3001;&#x57FA;&#x672C;&#x4F7F;&#x7528;&#x683C;&#x5F0F; &#x683C;&#x5F0F;1&#xFF1A;axios([options]) [&hellip;]</description></oembed>
