1,593
社区成员
发帖
与我相关
我的任务
分享
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
function getUrlSource(strUrl: string):string;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
function TForm1.getUrlSource(strUrl: string): string;
begin
//try
lsResult := IdHTTP1.GET(strUrl);
//except
//ShowMessage('获取源码出错');
//end;
end;