<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Vuejs on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/vuejs/</link><description>Recent content in Vuejs on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Mon, 25 Jun 2018 15:00:00 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/vuejs/atom.xml" rel="self" type="application/rss+xml"/><item><title>Using axios in Vue</title><link>https://www.chenshaowen.com/en/blog/using-axios-in-vue.html</link><pubDate>Mon, 25 Jun 2018 15:00:00 +0000</pubDate><atom:modified>Mon, 25 Jun 2018 15:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/using-axios-in-vue.html</guid><description>1. Installing axios Install with npm 1 npm install axios --save There are two ways to register it globally: Bind it to the prototype 1 2 import axios from &amp;#34;axios&amp;#34;; Vue.prototype.axios = axios; With this approach, every Vue object gets a new axios object. 1 2 3 this.axios.post(apiUrl).then((res) =&amp;gt; {</description><dc:creator>微信公众号</dc:creator><category>Frontend</category><category>Interface</category><category>API</category><category>Vuejs</category><category>Axios</category><category>R&amp;D</category></item></channel></rss>