async/await 是对 Promises 的语法糖,它让你能写出读起来像同步代码的异步代码。async 函数总是返回一个 Promise;await 暂停函数直到 Promise 落地,然后用其值继续执行。
js
() {
{
res = ();
user = res.();
user;
} (err) {
.(err);
}
}
