返回 reveal.js
loader.d.ts
根目录 / dist / utils / loader.d.ts
1 /**
2 * Loads a JavaScript file from the given URL and executes it.
3 *
4 * @param {string} url Address of the .js file to load
5 * @param {function} callback Method to invoke when the script
6 * has loaded and executed
7 */
8 export declare const loadScript: (url: string, callback?: (error?: Error) => void) => void;
9
9 lines TYPESCRIPT