if Assigned(WebBrowser1.Document) then
begin
iall := (WebBrowser1.Document AS IHTMLDocument2).Body;
while iall.parentElement <> nil do
begin
iall := iall.parentElement;
end;
htmlsour := iall.outerHTML;
Memo1.Lines.Text := htmlsour;
普通的windows程式可以這樣做,但是在FM框架里的webbrowser根本沒有document屬性,想要獲取 webbrowser瀏覽的網頁的原始碼如何獲取?
uj5u.com熱心網友回復:
一定要用 webrowser?可以找開源的Chrom轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/77505.html
標籤:網絡通信/分布式開發
