async await 的终极封装在看同事代码时候,看到下面这一段,有点意思。
let [res,error] = await getList()
if(error){
// 错误处理
}
// 业务处理
注意,这里代码没有使用try
2020-08-06