AngleSharp获取href的内容

版权声明:版权声明:本文为博主原创文章,转载请附上博文链接! https://blog.csdn.net/qq_36051316/article/details/84136864

AngleSharp获取href的内容

document的图片

这个document 是 anglesharp.dom.html.IhtmlDocument 这个类:上图有写

document.QuerySelector(“a”).GetAttribute(“href”)

使用GetAttribute 这个方法,可以获取我们标签的每一个属性的内容。

猜你喜欢

转载自blog.csdn.net/qq_36051316/article/details/84136864