使用范围:WX
Contents
component ServiceRequest ($UI/wxsys/comps/serviceRequest/serviceRequest) extends BindComponent
服务请求组件
Constructor Top
ServiceRequest () | |||
ServiceRequest ( config) |
Properties Top
String |
contentType
请求数据类型,默认application/json | ||
String |
dataType
返回数据类型 |
Attributes Top
String |
contentType
请求数据类型,默认application/json | ||
String |
dataType
返回数据类型 | ||
String |
service
服务 |
Methods Top
SuccessEvent | send ($UI/wxsys/JSON params) |
Operations Top
void | sendServiceRequest (object params) |
Events Top
void | beforeRequest (BeforeRequestEvent event) | |
void | error (ErrorEvent event) | |
void | success (SuccessEvent event) |
Constructor details
Top
public
ServiceRequest
()
服务请求组件
public
ServiceRequest
( config)
构造函数
Inherited from Operational
public
ServiceRequest
()
服务请求组件
public
ServiceRequest
( config)
构造函数
Inherited from Operational
Properties Detail Top
public
String
contentType
请求数据类型,默认application/json
public
String
dataType
返回数据类型
Attributes Detail Top
public
String
contentType
请求数据类型,默认application/json
public
String
dataType
返回数据类型
public
String
service
服务
Methods Detail Top
发送服务请求.
Operations Detail Top
public
void
sendServiceRequest
(object params)
发送服务请求
Events Detail Top
[回调型事件]请求前事件
[回调型事件]请求失败事件
[回调型事件]请求成功事件