Interface ICrossContextDataBus
Methods
addReceiver
- addReceiver(type: string, handler: (dataList: any[]) => void): void
-
Parameters
-
type: string
-
handler: (dataList: any[]) => void
Returns void
removeReceiver
- removeReceiver(type: string, handler: (dataList: any[]) => void): void
-
Parameters
-
type: string
-
handler: (dataList: any[]) => void
Returns void
send
- send(type: string, data: any): void
-
Parameters
Returns void
跨域数据总线。