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