code: function getHtmlContent(jQuery, fileArr, urlFunc, scriptAttr) {
      var $ = jQuery,
          jsArr = [],
          cssArr = [];
  
      // 获得js和css文件数组
      fileArr.forEach(function (item) {
          var extName = path.extname(item.filePathInHtml);
          switch (extName) {
              case '.js':
                  jsArr.push(item);
                  break;
              case '.css':
                  cssArr.push(item);
                  break;
              default :
                  break;
          }
      });
  
      //处理JS
      if (jsArr.length) {
          var scriptDomArr = $('script[' + scriptAttr + ']');
  
          scriptDomArr.each(function () {
              var scriptDom = $(this),
                  scriptUrl = scriptDom.attr(scriptAttr);
  
              if (!util.isExternalUrl(scriptUrl)) {
                  for (var i = 0, length = jsArr.length; i < length; i++) {
                      var one = jsArr[i];
  
                      if (util.isMatch(scriptUrl, one.filePathInHtml)) {
                          urlFunc(scriptDom, scriptUrl, one, scriptAttr);
  
                          if (scriptAttr === "data-main") {
                              dataMainUrl = scriptUrl;
                          }
  
                          break;
                      }
                  }
              }
          });
  
      }
  
      //处理CSS
      if (cssArr.length) {
          var cssDomArr = $('link[rel="stylesheet"][href]');
  
          cssDomArr.each(function () {
              var cssDom = $(this),
                  cssUrl = cssDom.attr('href');
  
              if (!util.isExternalUrl(cssUrl)) {
                  for (var i = 0, length = cssArr.length; i < length; i++) {
                      var one = cssArr[i];
  
                      if (util.isMatch(cssUrl, one.filePathInHtml)) {
                          urlFunc(cssDom, cssUrl, one, 'href');
                          break;
                      }
                  }
              }
          });
      }
  
      return $.html();
  }
docs: 获得html文件的内容
  @param {Object} jQuery
  @param {Object[]} fileArr 文件数组
  @param {Function} urlFunc 处理url的方法
  @param {String} scriptAttr script标签上要处理的属性，src或data-main
  @returns {String}