get请求
getSearch () { return this.$http.get('https://xxx.xxx.com/xxx.json', {params: {name: this.searchString}}) .then(response => { this.carList = response.data.data console.log(this.carList) }).catch(response => { this.error = 'CarList查询失败' console.log(this.error) }) }