Vue.prototype.$ 意為綁定一個全局變量
Vue.use(XXX) 意為引入XXX, 例如Vue.use(VueRouter),
1. 但是用 axios
時,就不需要用 Vue.use(axios)?因為
axios
沒有 install
。
2. Vue.prototype.$ 和 Vue.use() 有啥關系嗎?沒有
Vue.prototype.$ 意為綁定一個全局變量
Vue.use(XXX) 意為引入XXX, 例如Vue.use(VueRouter),
1. 但是用 axios
時,就不需要用 Vue.use(axios)?因為
axios
沒有 install
。
2. Vue.prototype.$ 和 Vue.use() 有啥關系嗎?沒有
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。