public JavascriptEngine
A javascript engine is NOT thread safe. The engine must provide the global result(s: String) and error(s: String) functions.
void executeJavascript(java.lang.String raw)
Execute a piece of javascript code.
raw - the javascript codejava.lang.String executeJavascript(java.lang.String pre,
java.lang.String src,
java.lang.String post)
Execute a piece of javascript code with a given string parameter. At the end, the function must either call result(s: String) or error(s: String).
pre - Prefixed javascript codesrc - The string parameter, does not need to be escaped.post - Postfixed javascript code