📅  最后修改于: 2022-03-11 15:04:07.484000             🧑  作者: Mango
function processResponse(response) {
const statusCode = response.status;
const data = response.json();
return Promise.all([statusCode, data]).then(res => ({
statusCode: res[0],
data: res[1]
}));
}