AjaxRequest
interface AjaxRequest {
url?: string
body?: any
user?: string
async?: boolean
method?: string
headers?: Object
timeout?: number
password?: string
hasContent?: boolean
crossDomain?: boolean
withCredentials?: boolean
createXHR?: () => XMLHttpRequest
progressSubscriber?: Subscriber<any>
responseType?: string
}
物产
属性 |
类型 |
网址 |
string |
身体 |
any |
用户 |
string |
异步的 |
boolean |
方法 |
string |
标头 |
Object |
超时 |
number |
密码 |
string |
hasContent |
boolean |
跨域 |
boolean |
withCredentials |
boolean |
createXHR |
() => XMLHttpRequest |
progressSubscriber |
Subscriber<any> |
responseType |
string |