Execute C # Cef winform script


CefWebBrowser.GetBrowser().GetFrame("mem_index").ExecuteJavaScriptAsync(a);

CefWebBrowser.ExecuteScriptAsync(a);

 

The difference between these two is that operation of the object dom different, face different js iframe have different code execution, and, when executing multiple lines of code, it is necessary to perform multiple lines of code in which only the closure function , (function () {.....}) () the only way to successfully execute.

Guess you like

Origin www.cnblogs.com/aashui/p/12043576.html