runebook
runebook copied to clipboard
zh-CN/docs/mongoose/0535ac8f88cf0379e9863d9dfc9c60677fd827a2/54
Do not declare statics using ES6 arrow functions (
=>
). Arrow functions explicitly prevent bindingthis
, so the above examples will not work because of the value ofthis
.
不要使用ES6箭头函数(声明静态 =>
)。箭头功能明确防止结合 this
,所以上面的例子不会工作,因为 this
的特性 。