中国开发网: 论坛: 程序员情感CBD: 贴子 30833
小名: 贴一个代码
没有frame 的,有frame 的还没搞定

uses MSHtml;

var
doc:IHTMLDocument2;
theList:TStringList;
begin
doc := WebBrowser1.document as ihtmldocument2;
theList:=TStringList.Create;
theList.Add(doc.body.outerHTML);
theList.SaveToFile(logfile);
theList.Free;
end;

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录