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() 有啥关系吗?没有

posted @ 2020-09-08 17:04  liuw_flexi  阅读(758)  评论(0编辑  收藏  举报