We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this
Bilibili-Evolved/src/ui/VPopup.vue
Lines 135 to 139 in 81f08cb
这里绑定的是 this.openHandler,而这种写法并没有将当前的 this 捕获到函数里。因此实际 openHandler 执行时,其访问到的 this 是错误的对象。
this.openHandler
openHandler
可用的写法:
(e: Event) => this.openHandler(e) this.openHandler.bind(this) lodash.bind(this.openHandler, this)
The text was updated successfully, but these errors were encountered:
7f43b3b
No branches or pull requests
问题描述
Bilibili-Evolved/src/ui/VPopup.vue
Lines 135 to 139 in 81f08cb
这里绑定的是
this.openHandler
,而这种写法并没有将当前的this
捕获到函数里。因此实际openHandler
执行时,其访问到的this
是错误的对象。可用的写法:
The text was updated successfully, but these errors were encountered: