- 加载css
import dynamicLoad from './dynamicLoad.js'
dynamicLoad.loadStyle('a.css')
dynamicLoad.loadStyle(['a.css', 'b.css'])
- 加载JavaScript
import dynamicLoad from './dynamicLoad.js'
dynamicLoad.loadScript([
'a.js',
'b.js'
], function () {
// do something ...
})