axios.get('http://example.com/api/function', { responseType: 'json' }) .then(response => console.log(response.data)) .catch(error => console.log(error));
上一篇:axios调用后数组索引出现问题
下一篇:Axios调用设置授权头不正常工作