AR_Engine_SDK
|
函数 | |
function xhttp | request (url, method, headers, body, callback) |
function xhttp | cancel (task) |
变量 | |
xhttp = {} | |
function xhttp cancel | ( | task | ) |
取消请求
task | 请求任务 |
function xhttp request | ( | url | , |
method | , | ||
headers | , | ||
body | , | ||
callback | |||
) |
反序列化
url | string 请求URL地址(不可为空) |
method | string 请求方式(不可为空) |
headers | table 请求头列表(可为空) |
body | string 请求体(可为空) |
callback | fun(code:userdata,content:any):void 回调函数 |
xhttp = {} |