1. 首页
  2. 编程语言
  3. Delphi
  4. delphi源码delphi中存取json
用户评论
码姐姐匿名网友 2019-05-15 22:55:09

骗子,骗分有意思吗? 总代码如下: function TForm1.RunJs(const JsCode, JsVar: string): string; var script:OleVariant; begin try Script :=CreateOleObject('ScriptControl'); Script.Language :='JavaScript'; Script.ExecuteStatement(JsCode); Result :=Script.Eval(JsVar); except result :=''; e