HtmlElement.QueryInterface(IHTMLIMGElement, imgElement);//转化
edthref.Text := '';
if Assigned(imgElement) then edthref.Text := imgElement.href;
HtmlElement.QueryInterface(IHTMLAnchorElement, AnchorElement); if Assigned(AnchorElement) then edthref.Text := AnchorElement.href;
HtmlElement.QueryInterface(IHTMLLinkElement, LinkElement); if Assigned(LinkElement) then edthref.Text := LinkElement.href; //转化
这些代码主要用于转化,但是看不太懂,求大神,真的求各位了T.T
edthref.Text := '';
if Assigned(imgElement) then edthref.Text := imgElement.href;
HtmlElement.QueryInterface(IHTMLAnchorElement, AnchorElement); if Assigned(AnchorElement) then edthref.Text := AnchorElement.href;
HtmlElement.QueryInterface(IHTMLLinkElement, LinkElement); if Assigned(LinkElement) then edthref.Text := LinkElement.href; //转化
这些代码主要用于转化,但是看不太懂,求大神,真的求各位了T.T