📅  最后修改于: 2022-03-11 15:02:34.340000             🧑  作者: Mango
async function getUserAsync(name) {
try{
let response = await fetch(`https://api.github.com/users/${name}`);
return await response.json();
}catch(err){
console.error(err);
// Handle errors here
}
}