Skip to content

Home > @jview/utils > loadScript

loadScript() function

加载一个脚本

Signature:

typescript
export declare function loadScript(options: LoadScriptOption): Promise<unknown>;
export declare function loadScript(options: LoadScriptOption): Promise<unknown>;

Parameters

ParameterTypeDescription
optionsLoadScriptOption

Returns:

Promise<unknown>

返回 Promise,existed 代表已经存在,loaded 代表加载完成。