资 源 简 介
About
importer.js is tiny javascript intended to solve a big problem in js -- problem with splitting large libraries into scripts. It also allows to use third-party scripts with minor changes.
Requirements
Any modern browser with XMLHttpRequest support.
Also ECMAUnit required if you wish to run included unit tests.
Example of use
module.js
```
// export func1, func2
function func1()
{
alert("Ta-da! Function from module");
}
var func2 = Import("another_module").func;
```
another\_module.js
```
// export func
function func()
{
alert("Function from another module");
}
```
sample.html
```