频道分类

delphi TMS WEB core js callproc

作者:admin 来源: 日期:2020/3/13 23:10:47 人气: 标签:TMS WEB core

 
// this is a Pascal method
procedure MyPascalProc(s: string);
begin
  ShowMessage(s);
end;

procedure TForm2.WebButton1Click(Sender: TObject);
begin
  asm
    // this is pure Javascript code
    $impl.MyPascalProc("test");
  end;
end;