A
Size: a a a
A
F
A
$ank
A
A
G
SB
G
A
K暗
K暗
F
SB
G
SB
G
G
F
const Ajax = {
get: async (url, headers = {}) => {
try {
const res = await fetch(url, {
method: 'GET',
headers,
});
const { status } = res;
if (status !== 200) {
return { status };
}
const data = await res.json();
return { status, ...data };
} catch (err) {
throw new Error(err);
}
}
}
(async ()=>{
try{
const res = aweit Ajax.get("http://.....");
console.log(res)
}catch(e){console.log({error:e})}
})()
SB
F