code: function (htmlurl, cb) {
      var htmlState = htmlurl.split(/\\|\//);
      var catalog = params.catalog;
      if (htmlState.length > 1) {
          catalog = htmlState[htmlState.length - 2]; //倒数第二个值是catalog
      }
      var htmlid;
      var htmlName = htmlState[htmlState.length - 1];
      redirectTo(params.url.server + params.url.htmlfilelist + 'p=1&t=&k=/' + htmlName + '.htm&s=' + catalog);//到达子栏目列表，查询 k
      casper.wait(1, function () {
          htmlid = casper.evaluate(function (pagename) {
              var pagereg = new RegExp('/' + pagename + '.htm$');
              var pageurl = document.querySelector('.dgd_table_tr_even:nth-child(1) td:nth-child(4)').innerText;
              if (pagereg.test(pageurl)) {
                  return document.querySelector('.dgd_table_tr_even:nth-child(1) td:nth-child(8)').innerHTML.match(/id=(\d*)&.*/)[1];
              }
          }, htmlName);
      });
      casper.wait(1, function () {
          cb(htmlid);
      });
  }
docs: 查找htmlid号