主页 > 编程资料 > Delphi >
发布时间:2015-09-22 作者:网络 阅读:126次


{Delphi: }

 

function FindIds(Aid:String):Boolean; 

var 

  Document :Variant; 

  Id:Integer; 

begin 

 Result   := False; 

 Document := WebBrowser.OleObject.Document.getElementsByTagName('*'); 

 for Id := 0 to Document.Length-1 do 

 begin 

  if Document.item(Id).id = Aid then 

  begin 

   Result := True; 

   Exit; 

  end; 

 end; 

end; 


关键字词: