摘要: try…catch 返回的数据正确的和错误合并到一起处理 const fn = async() => { let res&&err = await fetchFn().then(res => res).catch(err => err) } 返回的数据正确的和错误的分开处理 const fn = a 阅读全文
posted @ 2022-06-08 15:47 Mmonologue 阅读(53) 评论(0) 推荐(0)