• 2022-06-16 问题

    asyncfunctiontestAsync1(){console.log(“helloasync”);}letresult1=testAsync1();console.log(result1);() A: Promise{[[PromiseStatus]]:"resolved",[[PromiseValue]]:"helloasync"} B: helloasync C: helloasyncPromise{[[PromiseStatus]]:"resolved",[[PromiseValue]]:undefined}  D: 报错

    asyncfunctiontestAsync1(){console.log(“helloasync”);}letresult1=testAsync1();console.log(result1);() A: Promise{[[PromiseStatus]]:"resolved",[[PromiseValue]]:"helloasync"} B: helloasync C: helloasyncPromise{[[PromiseStatus]]:"resolved",[[PromiseValue]]:undefined}  D: 报错

  • 1