procedure TWebModule1.WebModule1DefaultHandlerAction(Sender: TObject; Request: TWebRequest; Response: TWebResponse; var Handled: Boolean); var FileContent: TStringList; begin FileContent := TStringList.Create; // 假设你的HTML文件位于Web服务器的根目录下,文件名为a01.html FileContent.LoadFromFile( ExtractFilePath (ParamStr (0))+ '\a01.html'); Response.Content := FileContent.Text; Response.ContentType := 'text/html; charset="UTF-8"'; Handled := True; FileContent.Free;end;
标签:Handled,a01,导入,html,webbroker,HTML,FileContent,Response From: https://www.cnblogs.com/tulater/p/18612619