new Op()
业务操作对象
带各种业务操作的专用模块,该模块内的函数全部使用Zero Ui基础规范$op
前缀的Promise函数。
操作列表
函数 | 说明 |
---|---|
$opLogin | OAuth登录专用Promise。 |
$opLogout | OAuth注销专用Promise。 |
Methods
(async, static) $opLogin(reference) → {function}
「操作」Ex.Op.$opLogin
登录专用操作。
Parameters:
Name | Type | Description |
---|---|---|
reference |
Object | React对应组件引用。 |
Returns:
返回最终Promise
- Type
- function
(async, static) $opLogout(reference) → {Promise.<T>}
「操作」Ex.Op.$opLogout
注销专用操作。
Parameters:
Name | Type | Description |
---|---|---|
reference |
Object | React对应组件引用。 |
Returns:
返回最终Promise
- Type
- Promise.<T>