interface ILoadJSOptions { onSuccess?: (this: HTMLScriptElement, ev: Event) => void; onError?: (this: HTMLScriptElement, e: ErrorEvent) => void; } /** * 加载js脚本 * @param url 脚本url * @param onSuccess 加载成功回调函数 * @param onError 加载失败回调函数 * @category 加载器 */ export declare function loadJS(url: string, { onSuccess, onError }?: ILoadJSOptions): Promise; export {};