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