module.exports = class A{
static async bb(){
# console.log(this) =>undefined.无法调用。
await this.bb()
}
static async bb(){
//忽略代码
}
}
我在另外文件
#koa-router koa2
router.post('/',A.bb)
node 7.10
在同一个类中的一个静态方法调用另一个静态方法,可以使用 this 关键字。
怎么是this值怎么是undefined
this指向问题