Interface AjaxOptions<T>

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

Type Parameters

Hierarchy (view full)

Properties

allowHosts?: string[]

安全域名

networkSubscribe?: NetworkSubscribe

网络消息追踪

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

请求代理

Type declaration

    • (url): string | Promise<string>
    • Parameters

      • url: string

      Returns string | Promise<string>

responseType?: T

数据返回类型

timeout?: number

超时时间