code: function loadResource(pluginAndResource, baseId) {
          if (modModules[pluginAndResource]) {
              return;
          }
  
          /* eslint-disable no-use-before-define */
          var bundleModuleId = bundlesIndex[pluginAndResource];
          if (bundleModuleId) {
              loadModule(bundleModuleId);
              return;
          }
          /* eslint-enable no-use-before-define */
  
          var idInfo = parseId(pluginAndResource);
          var resource = {
              id: pluginAndResource,
              state: MODULE_ANALYZED
          };
          modModules[pluginAndResource] = resource;
  
          /**
           * plugin加载完成的回调函数
           *
           * @inner
           * @param {*} value resource的值
           */
          function pluginOnload(value) {
              resource.exports = value || true;
              modDefined(pluginAndResource);
          }
  
          /* jshint ignore:start */
          /**
           * 该方法允许plugin使用加载的资源声明模块
           *
           * @param {string} id 模块id
           * @param {string} text 模块声明字符串
           */
          pluginOnload.fromText = function (id, text) {
              new Function(text)();
              modCompletePreDefine(id);
          };
          /* jshint ignore:end */
  
          /**
           * 加载资源
           *
           * @inner
           * @param {Object} plugin 用于加载资源的插件模块
           */
          function load(plugin) {
              var pluginRequire = baseId
                  ? modModules[baseId].require
                  : actualGlobalRequire;
  
              plugin.load(
                  idInfo.res,
                  pluginRequire,
                  pluginOnload,
                  moduleConfigGetter.call({id: pluginAndResource})
              );
          }
  
          load(actualGlobalRequire(idInfo.mod));
      }
docs: 加载资源
  
  @inner
  @param {string} pluginAndResource 插件与资源标识
  @param {string} baseId 当前环境的模块标识