uses comobj

 

function calculate(express: string): string;
var
 vscript: Variant;
begin
 vscript := createoleobject('scriptcontrol');
 vscript.language:='javascript';
 result := vscript.eval(express);
end;

相关文章:

  • 2022-12-23
  • 2019-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2021-05-22
  • 2021-10-28
  • 2021-10-16
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案