UI5 EventBus
生活随笔
收集整理的這篇文章主要介紹了
UI5 EventBus
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Question
ui5的getEventBus底層是怎么實(shí)現(xiàn)的?效率怎么樣?
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”.
總結(jié)
以上是生活随笔為你收集整理的UI5 EventBus的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: when is Component-pr
- 下一篇: Uncaught TypeError: