Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Run simple script

$
0
0
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?

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images