火灾和发布之间的区别
在 YUI3 自定义事件的上下文中:Y.fire 和 Y.publish 之间有什么区别?
In the context of YUI3 custom events : what is the difference between Y.fire and Y.publish ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发布创建一个新的自定义事件,而火灾将触发它,请在此处阅读规范:
http://yuilibrary.com/yui/docs/api/classes/EventTarget.html#method_publish
http://yuilibrary.com/yui/docs/api/classes/EventTarget.html #method_fire
Publish creates a new custom event, while fire will trigger it, read the specs here:
http://yuilibrary.com/yui/docs/api/classes/EventTarget.html#method_publish
http://yuilibrary.com/yui/docs/api/classes/EventTarget.html#method_fire