0
我得到的「span文本」這段代碼,但我想要鏈接href(而不是鏈接文本)。 請幫助我。獲取鏈接在<span>
Dim html As String = "<span class=myclass><a href=abc.html>text text a text</a></span>"
Dim doc = New HtmlAgilityPack.HtmlDocument()
doc.LoadHtml(html)
Dim titles As HtmlAgilityPack.HtmlNodeCollection = doc.DocumentNode.SelectNodes("//span[@class='myclass']")
For Each title In titles
MsgBox(title.InnerText)
Next
非常感謝你。 – Blueman