this指向

axios.get('/api', {
params: {
name: "kerwin",
age:100
}
})
.then((response)=> {
// console.log(response);
this.datalist = response.data.list
})
.catch(function (error) {
console.log(error);
});

你可能感兴趣的:(this指向)