You can also explicitly return a promise which would be the same as written below. async function foo() { return Promise.resolved('hello'); }foo().then(alert); ...
確定! 回上一頁