摘要: C# 解析html中筛选class的问题C# html解析 class 类 当我们用C#的.net解析html的时候,当html的元素没有id,并且没有过多的属性供筛选,只能通过class="div2"之类的筛选的时候,当我们使用string helperStr1 = item.GetAttribute("class");会发现用上面的代码其实是找不到的,这时候只需要进行如下修改就可以了stri... 阅读全文
posted @ 2018-02-22 11:02 天空-青岛 阅读(735) 评论(0) 推荐(0)