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
bind this
在点击触发的三个 eventBus 上都试了一下,先打印的是event,然后打印的是this,我不知道这算js的特性还是程序bug,并且没有找到相关的issue,所以我先提一下
this应该是指向这个函数所在类的
No response
- Version: 2.9.3 - Operating System: windows - Browser (if used):
I 2023/07/03 22:03:14 box.go:79: auto stat [trees=275, blocks=13238, dataSize=210 MB, assetsSize=24 MB] I 2023/07/03 22:03:14 disk.go:33: disk usage [total=785 GB, used=233 GB, free=552 GB] I 2023/07/03 22:07:27 repository.go:1182: synced data repo [kernel=xy62sf2, provider=0, ufc=4, dfc=1, ucc=2, dcc=0, ub=163 kB, db=72 kB] in [1.89s]
The text was updated successfully, but these errors were encountered:
🎨 siyuan-note/siyuan#8668
7cfba4a
JS 中的 this 在 EventBus 中就是这样的。需要使用 this 可参考 7cfba4ae27fd3bddf82c2d9cc9a512a94c898ae3 中的更改。
Sorry, something went wrong.
📝 siyuan-note/siyuan#8668
703d402
Vanessa219
No branches or pull requests
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
在点击触发的三个 eventBus 上都试了一下,先打印的是event,然后打印的是this,我不知道这算js的特性还是程序bug,并且没有找到相关的issue,所以我先提一下
Expected result
this应该是指向这个函数所在类的
Screenshot or screen recording presentation
No response
Version environment
Log file
I 2023/07/03 22:03:14 box.go:79: auto stat [trees=275, blocks=13238, dataSize=210 MB, assetsSize=24 MB]
I 2023/07/03 22:03:14 disk.go:33: disk usage [total=785 GB, used=233 GB, free=552 GB]
I 2023/07/03 22:07:27 repository.go:1182: synced data repo [kernel=xy62sf2, provider=0, ufc=4, dfc=1, ucc=2, dcc=0, ub=163 kB, db=72 kB] in [1.89s]
More information
No response
The text was updated successfully, but these errors were encountered: