获取成功 3.1 接下来故意将axios.then引入.catch回调中看是否有效 说明有效
{ //1定义 const _this = this; //这里的this指向vmCart axios.get('data/cartData.json') //使用axios .then(function(res){ //then回调函数 // 使用箭头函数的话,this的作用域并不会变,还是指向vmCart // (res)=>{ // if(res.status == 200){ // this.totalMoney = res.data.result.total...