class A{ constructor(){ await this.sayHi(); } async sayHi(){ await ... } }
constructor里有await,async写在哪里
this.sayHi().then()吧 构造函数async不返回promise了吗?
755k questions
754k answers
5 comments
53.3k users