vue的ajax请求之axios
Posted BlueSky1024
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue的ajax请求之axios相关的知识,希望对你有一定的参考价值。
axios.get(this.apiUrl+‘good/info‘,{params:{‘goodsid‘:‘sp441153‘}})
.then(function(response){
console.log(response);
_this.pics=response.data.data.pics;
_this.message=response.data.data;
_this.goodsAttr=response.data.data.goods_attr;
_this.colorList=response.data.data.color_list;
_this.sizeList=response.data.data.size_list;
})
.catch(function(response) {
console.log(response);
})
以上是关于vue的ajax请求之axios的主要内容,如果未能解决你的问题,请参考以下文章