通过Vue.use(http) 注册插件

http中 有个install(v){

v.prototype.$http = ?

}函数 第一个参数就是Vue构造函数

然后在install函数内给Vue的原型对象上增加一个$http属性

相关文章: