摘要:
!(function(dependencies, factory) { //amd || cmd if (typeof define == 'function' && (define.cmd || define.amd)) { define(dependencies, function() { re 阅读全文
摘要:
(function(window, undefined) { var modules = {}; var Sky = { //定义模块的基本信息 // 1、模块名称, 2、模块的依赖, 3、产生实例的工厂 define: function(moduleName, dependencies, fact 阅读全文