老师,源码下载下来,有一个问题
try {
response = instance[api.method](url, newParams, config)
console.log(JSON.stringify(response) + 'ppp'); // *********
} catch (err) {
console.log(JSON.stringify(response) + 'dddddd'); // *****
response = err;
}这块出错了,会直接进入到catch中