用**V8模块或者RS支持库里面的V8都可以
[C++] 纯文本查看 复制代码 //**V8用法
V8.InitializeV8 ()
data = “OstwwwHiFiNicom69GTKDzvZRsGl51wwwHiFiNicomVxrbogxxHiFiNixxJIzOhIFwaB9ffSRz1VtoxDzQHDroRxRERpPfuOjswwwHiFiNicom6kHihELhuUTJtkjqIzH1BixGUyBiqLuyO2o”
ret = V8.ExecJavaScriptV8 (#JS代码, “generateParam('” + data + “')”, 真, 真)
输出调试文本 (“结果:” + ret)
V8.UninitializeV8 ()
变量名 | 类 型 | 静态 | 数组 | 备 注 | V8 | RSJSCriptV8 | | | data | 文本型 | | | ret | 文本型 | | | rsV8CreateIsolate (0, )V8. RunJSCript ( #JS代码, 假, 0, 0, )data = “OstwwwHiFiNicom69GTKDzvZRsGl51wwwHiFiNicomVxrbogxxHiFiNixxJIzOhIFwaB9ffSRz1VtoxDzQHDroRxRERpPfuOjswwwHiFiNicom6kHihELhuUTJtkjqIzH1BixGUyBiqLuyO2o”ret = V8. RunJSCript (“generateParam('” + data + “')”, 真, 0, 0, )返回 (0 )
|