var
hDoc: IHTMLDocument2;
FDIV: IHTMLElement;
begin
hDoc := LoginWeb.Document as IHtmlDocument2;
FDiv := hDoc.all.item('ID或者name', VarEmpty) as IHTMLElement;
begin
//某些操作
end;
end;
最近研究了一下WebBrowser自动填表,并做了几个工具。来了兴致,就想继续研究一下,设想我们填表的时候常用的代码为: var hDoc: IHTMLDocument2; FDIV: IHTMLElement; begin hDoc := LoginWeb.Document as IHtmlDocument2; FDiv := hDoc.all.item('ID或者name', VarEmpty) as IHTMLElement; begin //某些操作 end; end; 现在,假设某个网