cefsharp插入自定义JS
作者:互联网
string script_1 = "document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'";
web.ExecuteScriptAsync(script_1);
string script_2 = "document.onclick=function(ev){var oEvent = ev ||event;alert(oEvent.clientX+','+oEvent.clientY);// IE浏览器兼容}";
web.ExecuteScriptAsync(script_2);
标签:web,cefsharp,document,ev,ExecuteScriptAsync,自定义,script,JS,oEvent 来源: https://www.cnblogs.com/mike2001/p/10767024.html