Constructor
new (require("$ui/utils/messager"))(options)
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | 实例化参数选项 Properties
|
Members
target :Window|*
- Source:
Properties:
Name | Type | Description |
---|---|---|
target |
Window |
通信目标对象
Type:
- Window | *
Methods
bridgeHandler(evt)
- Source:
localStorage 事件处理函数
Parameters:
Name | Type | Description |
---|---|---|
evt |
object |
buildBridge() → {Promise.<any>}
- Source:
搭桥,创建iframe,加载桥页面
Returns:
- Type
- Promise.<any>
destroy()
- Source:
销毁
off(typeopt, handleropt)
- Source:
取消侦听
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
type |
string |
<optional> |
消息类型 |
handler |
function |
<optional> |
处理函数 |
pass(message, origin)
- Source:
桥页面传输写入localStorage
Parameters:
Name | Type | Description |
---|---|---|
message |
object | |
origin |
string | 消息来源 |