@1000ch/load-script 中文文档教程
load-script
加载带有脚本元素的脚本文件。
Install
$ npm install --save @1000ch/load-script
Usage
import loadScript from '@1000ch/load-script';
(async () => {
await loadScript('./foo.js');
await Promise.all([
loadScript('./bar.js'),
loadScript('./baz.js')
]);
})();
License
load-script
Load a script file with script element.
Install
$ npm install --save @1000ch/load-script
Usage
import loadScript from '@1000ch/load-script';
(async () => {
await loadScript('./foo.js');
await Promise.all([
loadScript('./bar.js'),
loadScript('./baz.js')
]);
})();