调用javaScript脚本计算字符串表达式
uses comobj
function calculate(express: string): string;
var
vscript: Variant;
begin
vscript := createoleobject('scriptcontrol');
vscript.language:='javascript';
result := vscript.eval(express);
end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/archive/2008/09/26/2940819.html