Vue——vue-resource
1、安装 npm i vue-resource 与axios用法相同2、引入import vueResource from 'vue-resource’插件3、使用this.$http.get(`https://api.github.com/search/users?q=${this.keyWord}`).then( response => { console.log('请求成功',response.data.items) this.$bus.$emit("updat