the code run in the Render process;
- Code: Select all
CefV8Context v8context = _browser.GetMainFrame().V8Context;
CefV8Value v8vlaue = v8context.GetGlobal();
CefV8Value arg = CefV8Value.CreateString("return '11';");
CefV8Value[] args = new CefV8Value[1];
args[0] = arg;
CefV8Value returnvalue=v8vlaue.ExecuteFunction(null, args);
Console.WriteLine("javascript return:" + returnvalue);
I need the return value,but no return value.
Any guidance would be appreciated, thanks!
duoixi