code: function () {
  
          var htmlFile = this.htmlFile;
          var htmlParser = this.htmlParser;
          var options = this.options;
          var resources = [];
  
          // 获取外链样式资源
          var cssFiles =  htmlParser.getCssFiles();
  
          // 获取 style 标签内容资源
          var cssContents =  htmlParser.getCssContents();
  
  
          cssFiles.forEach(function (cssFile, index) {
  
              if (!cssFile) {
                  return;
              }
  
              var line = index + 1;
              var from = 'link:nth-of-type(' + line + ')';
  
              resources.push(
                  new Resource(
                      cssFile,
                      null,
                      utils.options(options, {
                          cache: true,
                          from: from
                      })
                  )
              );
  
          });
  
  
          cssContents.forEach(function (content, index) {
  
              if (!content) {
                  return;
              }
  
              var line = index + 1;
              var from = 'style:nth-of-type(' + line + ')';
              var cssFile = htmlFile + '#' + from;
              resources.push(
                  new Resource(
                      cssFile,
                      content,
                      utils.options(options, {
                          cache: false,
                          from: from
                      })
                  )
              );
          });
  
  
  
          return Promise.all(resources.map(function (resource) {
              return new CssParser(resource);
          }))
  
          // 对二维数组扁平化处理
          .then(utils.reduce);
      }
docs: /*
  获取当前页面 link 标签与 style 标签的 CSS 解析结果
  @return      {Promise}   Array<CssParser.Model>