async function fetchData() {
const res = await axios.get(‘/api/data’);
console.log(res.data);
}
fetchData();
async和await
最新推荐文章于 2024-09-09 11:08:24 发布
async function fetchData() {
const res = await axios.get(‘/api/data’);
console.log(res.data);
}
fetchData();