Interface AjaxOptions<T>

interface AjaxOptions<T> {
    allowHosts?: string[];
    networkSubscribe?: NetworkSubscribe;
    requestProxy?: ((url: string) => string | Promise<string>);
    responseType?: T;
    timeout?: number;
}

Type Parameters

Hierarchy (view full)

Properties

allowHosts?: string[]

安全域名

networkSubscribe?: NetworkSubscribe

网络消息追踪

requestProxy?: ((url: string) => string | Promise<string>)

请求代理

responseType?: T

数据返回类型

timeout?: number

超时时间