- 博客(2)
- 收藏
- 关注
原创 JavaScript 的顺序执行 执行机制
先上一个今日头条的面试题async function async1() { console.log('async1 start'); await async2(); console.log('async1 end');}async function async2() { console.log('async2');}console.log('script start');setTimeout(function() { console.log('setT
2020-06-19 14:35:03 2256
原创 axios请求失败,如何获取接口返回的状态码及错误信息
如果axios请求失败,如何获取接口返回的状态码及错误信息?方法如下axios.get('api/test') .catch(function (error) { if (error.response) { // The request was made and the server responded with a status code // that falls out of the range of 2xx console.log(error.re
2020-06-19 13:46:54 8212 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人