define(function(require,exports, module) {
exports.init = function (org, target) {
//todo
}
});
Sea.js 官方网址: http://seajs.org/docs/#quick-start
模块定义(很详细):http://www.zhangxinxu.com/sp/seajs/docs/zh-cn/module-definition.html
因为一个项目,想尝试一下Sea.js ,本来以为参照例子可以很容易,结果还是花了几个小时找问题。
问题一:页面加载Sea.js 文件链接,显示页面的时候会在这个文件里报错,主要是由于其所在目录没有 【sea.js.map】导致的,可以在链接用如下地址获取