使用范围:WX
Contents
component ApiRequest ($UI/comp/apiRequest/components/apiRequest/apiRequest) extends Component
API请求组件
Constructor Top
ApiRequest () | |||
ApiRequest ( config) |
Properties Top
String |
operationId
操作标识 |
Attributes Top
String |
operationId
操作标识 | ||
String |
serviceName
OpenAPI |
Methods Top
Res | send ($UI/wxsys/JSON params) |
Operations Top
void | send (object params) | |
void | send (object params) |
Events Top
void | error (ErrorEvent event) | |
void | error (BeforeRequestEvent event, ErrorEvent event) | |
void | success (SuccessEvent event) |
Constructor details
Top
public
ApiRequest
()
API请求组件
使用场景:发送API请求。
使用方法:选择openapi进行发送。
public
ApiRequest
( config)
构造函数
Inherited from Operational
public
ApiRequest
()
API请求组件
public
ApiRequest
( config)
构造函数
Inherited from Operational
Properties Detail Top
public
String
operationId
操作标识
Attributes Detail Top
public
String
operationId
操作标识
public
String
serviceName
OpenAPI
Methods Detail Top
发送OpenAPI请求.
Operations Detail Top
public
void
send
(object params)
发送OpenAPI请求
public
void
send
(object params)
发送OpenAPI请求
Events Detail Top
[回调型事件]请求失败事件
[回调型事件]请求失败事件
[回调型事件]请求成功事件