UI5 EventBus
生活随笔
收集整理的這篇文章主要介紹了
UI5 EventBus
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Question
ui5的getEventBus底層是怎么實現的?效率怎么樣?
Answer
No special implementation, just normal subscriber - publisher design pattern.
Event subscriber gets EventBus instance via
Subscriber code uses API subscribe to register the event handler provided by application with a given event.
In my example, my event handler is function onOrderApproved, and the event I would like to listen to is “OrderApproved”.
總結
以上是生活随笔為你收集整理的UI5 EventBus的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: when is Component-pr
- 下一篇: 如何正确的填写子网前缀长度