摘要: function smartPromise(promise){ return promise.then(res=>([null,res])).catch((e)=>([e,null])); } async function task(){ const [errorA,fileA] = await s 阅读全文
posted @ 2021-03-25 18:36 jzfan 阅读(55) 评论(0) 推荐(0) 编辑