declare namespace WechatMiniprogram { interface requestParamsData { url: string; data?: Object; header?: {}; method?: "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "DELETE" | "TRACE" | "CONNECT" | undefined; dataType?: 'json' | '其他'; success:AccessCompleteCallback; baseUrlNone?: boolean; noloading?: boolean; complete?: (com? :any) => void; } } /** 接口调用结束的回调函数(调用成功执行) */ type AccessCompleteCallback = (res: any) => void