Hi, everyone!
I'm new in using ClearScript. Could you show me how I can run simple script like:
function TestMethod(testObj)
{
//some action
return testObj;
}
without using construction like: "engine.Script.TestMethod(testObj)" ?
Can I somehow pass the string script to method like: "engine.evaluate(stringScript)"? And how to pass json to that method?
I'm new in using ClearScript. Could you show me how I can run simple script like:
function TestMethod(testObj)
{
//some action
return testObj;
}
without using construction like: "engine.Script.TestMethod(testObj)" ?
Can I somehow pass the string script to method like: "engine.evaluate(stringScript)"? And how to pass json to that method?