本文整理自网络,侵删。
// this is a Pascal methodprocedure MyPascalProc(s: string);begin ShowMessage(s);end;
procedure TForm1.WebButton1Click(Sender: TObject);begin asm // this is pure Javascript code $impl.MyPascalProc("test"); end;end;
procedure TForm.MyTest;var a: integer;begin a := 42; asm alert('this is my JavaScript call ' +a); end;end;
相关阅读 >>
Delphi dll注入x86/x64/win2k~win8.1全可用
Delphi firemonkey 学习笔记 �c tpopup 控件的使用
Delphi研究之驱动开发篇(六)--利用section与用户模式程
Delphi xe 使用savestate保存firemonkey状态的示例
更多相关阅读请进入《Delphi》频道 >>