class方法如下:
npm set registry --registry="https://registry.npmjs.org/"
执行如下:
public unsubscribe() {
var unsubscribeEvent: JEvent = {
kind: 'stop'
}
console.log(this)
this.persister.pushEvent(unsubscribeEvent)
}
为什么该方法将上下文赋给变量时会丢失上下文?