@geeeger/script-loader
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

script-loader

加载第三方脚本

Usage

import loader from '@geeeger/script-loader';

loader({
    src: 'some/script/path.js',
    // optional
    callback: function () {
        dataBus.set('wx', window.wx);
    },
    // optional
    error: function () {
        alert('load-script error');
    },
    // optional
    async: true,
    // optional
    cache: true
})

Readme

Keywords

Package Sidebar

Install

npm i @geeeger/script-loader

Weekly Downloads

1

Version

2.0.7

License

ISC

Unpacked Size

3.68 kB

Total Files

4

Last publish

Collaborators

  • geeeger