runebook icon indicating copy to clipboard operation
runebook copied to clipboard

zh-CN/docs/mongoose/0535ac8f88cf0379e9863d9dfc9c60677fd827a2/54

Open LIBai11 opened this issue 2 years ago • 0 comments

Do not declare statics using ES6 arrow functions (=>). Arrow functions explicitly prevent binding this, so the above examples will not work because of the value of this.

不要使用ES6箭头函数(声明静态 => )。箭头功能明确防止结合 this ,所以上面的例子不会工作,因为 this的特性 。

LIBai11 avatar Jun 24 '22 04:06 LIBai11