Api
MethodSendrequest
OpenAPI > Method > sendRequest
OpenAPI.Method.sendRequest() method
Warning: This API is now obsolete.
请使用 new HttpRequest()
更简单的HttpRequest
Signature:
static sendRequest(url: string, json: any, completeText: any, errorText: any, trigger?: any, requestType?: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
url | string | 请求地址 |
json | any | 数据 |
completeText | any | 完成事件 |
errorText | any | 发生错误时事件 |
trigger | any | (Optional) 触发器 |
requestType | string | (Optional) |
void