docs: function ScriptLoader(resLocals, Resource) {
      if (!(this instanceof ScriptLoader)) return new ScriptLoader(resLocals);
  
      var self = this;
      self.logger = Resource.LoggerCreate(__filename);
      self.PathTool = Resource.PathTool;
      self.scriptList = [];
  
      // 标记内嵌脚本的开始和结束，便于在render中替换到body结束位置
      _.extend(resLocals, {
          script_start: function () {
              return MARK.scriptStartMark;
          },
          script_end: function () {
              return MARK.scriptEndMark;
          },
          // path to the static dir or id
          load_script: function (path) {
              var foundPath = self.PathTool.findLibScript(path);
              if (foundPath) {
                  self.scriptList.push(foundPath);
              } else {
                  self.logger.warn('script:%s not found!', path);
              }
          }
      });
  }