0

我用inIHTMLDocument2来检索字符串,我有要恢复的链接,但我不知道如何使用我看到我的链接,但我不知道如何检索它。innertextTDinnerhtml

我的 HTML

<td class="hidden-sm hidden-xs">
    <a href="** My URL **">
        <i class="fa fa-cube" aria-hidden="true"></i>**My Title**
    </a>
</td>

在innerhtml中,我因此<a href="** My URL **"> <i class = "fa fa-cube" aria-hidden = "true"> </ i> ** My Title ** </a> 想恢复'href'的内容

我的代码

for i := 0 to doc.body.all.length  do
  begin
       el := doc.body.all.item(i);
       if (el.tagName = 'TD') then
       Begin
            Title := el.innerText;
            URL := el.??;
4

0 回答 0