这个问题真的是好无语

 var table = doc.DocumentNode.SelectSingleNode("//table[@class='ddd']");
            var a = table.SelectNodes("//a");

无论怎么尝试 a对象拿到的</a>标签都是全局的 

拿不到table节点下的</a>标签

 

你需要把改成

  var a = table.SelectNodes(".//a");

加个.就好了  

这是我在github上找到的,百度都是什么玩意???

相关文章:

  • 2021-12-10
  • 2021-11-30
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-11-14
  • 2021-07-23
  • 2022-12-23
猜你喜欢
  • 2021-11-12
  • 2021-09-17
  • 2021-11-04
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案