将文本框值传递给CefSharp Javascript

时间:2018-09-26 17:49:07

标签: javascript c# cefsharp

我想从C#应用程序的文本框中将值传递给javascript函数。 但是我没有找到解决方案,有旧帖子,但是功能不再可用。

 chromeBrowser.ExecuteScriptAsync(File.ReadAllText(@"content\jquery-3.3.1.min.js"));

 chromeBrowser.ExecuteScriptAsync(File.ReadAllText(@"content\javascript.js"));

在Javascript文件中,有一个名为test的函数:

  function test(hallo){
    alert(hallo);
  }

How to pass inputs to javascript functions with cefsharp

这不像其他人那样

0 个答案:

没有答案
相关问题