code: function loaded() {
              if (shimConf) {
                  var exports;
                  if (typeof shimConf.init === 'function') {
                      exports = shimConf.init.apply(
                          global,
                          modGetModulesExports(shimDeps, BUILDIN_MODULE)
                      );
                  }
  
                  if (exports == null && shimConf.exports) {
                      exports = global;
                      each(
                          shimConf.exports.split('.'),
                          function (prop) {
                              exports = exports[prop];
                              return !!exports;
                          }
                      );
                  }
  
                  globalDefine(moduleId, shimDeps, function () { 
                      return exports || {};
                  });
              }
              else {
                  modCompletePreDefine(moduleId);
              }
  
              modAutoDefine();
          }
docs: script标签加载完成的事件处理函数
  
  @inner