Skip to content
New issue

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

发射和监听事件有效范围 #2367

Closed
kibozh opened this issue Nov 28, 2022 · 1 comment
Closed

发射和监听事件有效范围 #2367

kibozh opened this issue Nov 28, 2022 · 1 comment
Assignees

Comments

@kibozh
Copy link

kibozh commented Nov 28, 2022

URL : https://github.com/cocos-creator/creator-docs/blob/master/zh/engine/event/event-emit.md

文档中没有说清楚事件的有效范围,究竟是组件内还是兄弟组件也有效还是全局有效。

@MrKylinGithub MrKylinGithub changed the title 发射和监听事件 发射和监听事件有效范围 May 29, 2024
@MrKylinGithub
Copy link
Contributor

不存在所谓的有效范围。 对于事件来说,主动调用 on 进行监听了的,才能收到事件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants