🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 概述 语法 ``` interface RequestInit { body?: BodyInit | null; cache?: RequestCache; //"default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" credentials?: RequestCredentials; headers?: HeadersInit; integrity?: string; keepalive?: boolean; method?: string; // 请求方法,默认为 GET mode?: RequestMode; // "cors" | "navigate" | "no-cors" | "same-origin" redirect?: RequestRedirect; referrer?: string; referrerPolicy?: ReferrerPolicy; signal?: AbortSignal | null; window?: null; } type RequestInfo = Request | string; declare var Request: { prototype: Request; new(input: RequestInfo, init?: RequestInit): Request; }; ```