docs: function createLocalRequire( baseId ) {
          var requiredCache = {};
          function req( requireId, callback ) {
              if ( typeof requireId === 'string' ) {
                  if ( !requiredCache[ requireId ] ) {
                      requiredCache[ requireId ] =
                          nativeRequire( normalize( requireId, baseId ) );
                  }
  
                  return requiredCache[ requireId ];
              }
              else if ( requireId instanceof Array ) {
                  // 分析是否有resource，取出pluginModule先
                  var pluginModules = [];
                  var pureModules = [];
                  var normalizedIds = [];
  
                  each(
                      requireId,
                      function ( id, i ) {
                          var idInfo = parseId( id );
                          var absId = normalize( idInfo.module, baseId );
                          pureModules.push( absId );
                          autoDefineModules[ absId ] = 1;
                          if ( idInfo.resource ) {
                              pluginModules.push( absId );
                              normalizedIds[ i ] = null;
                          }
                          else {
                              normalizedIds[ i ] = absId;
                          }
                      }
                  );
  
                  var noRequestModules = {};
                  each(
                      pureModules,
                      function ( id ) {
                          var meet;
                          indexRetrieve(
                              id,
                              noRequestsIndex,
                              function ( value ) {
                                  meet = value;
                              }
                          );
  
                          if ( meet ) {
                              if ( meet[ '*' ] ) {
                                  noRequestModules[ id ] = 1;
                              }
                              else {
                                  each( pureModules, function ( meetId ) {
                                      if ( meet[ meetId ] ) {
                                          noRequestModules[ id ] = 1;
                                          return false;
                                      }
                                  } );
                              }
                          }
                      }
                  );
  
                  // 加载模块
                  nativeRequire(
                      pureModules,
                      function () {
                          each( normalizedIds, function ( id, i ) {
                              if ( id == null ) {
                                  normalizedIds[ i ] = normalize( requireId[ i ], baseId );
                              }
                          } );
  
                          nativeRequire( normalizedIds, callback, baseId );
                      },
                      baseId,
                      noRequestModules
                  );
              }
          }
  
          /**
           * 将[module ID] + '.extension'格式的字符串转换成url
           *
           * @inner
           * @param {string} source 符合描述格式的源字符串
           * @return {string}
           */
          req.toUrl = function ( id ) {
              return toUrl( normalize( id, baseId ) );
          };
  
          return req;
      }