Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何检测jQuery是否位于WinForm WebBrowser控件中导航到的文档中?_C#_Jquery_Winforms_Dom_Webbrowser Control - Fatal编程技术网

C# 如何检测jQuery是否位于WinForm WebBrowser控件中导航到的文档中?

C# 如何检测jQuery是否位于WinForm WebBrowser控件中导航到的文档中?,c#,jquery,winforms,dom,webbrowser-control,C#,Jquery,Winforms,Dom,Webbrowser Control,我有一个C#/Visual Studio 2008中的Windows窗体应用程序,带有IE WebBrowser控件。在DocumentCompleted事件中,我想搜索WebBrowser.Document或WebBrowser.DomDocument,查看jQuery是否已经存在于页面中 实现这一目标的好方法是什么 谢谢 您是否尝试过: bool hasjQuery = webBrowser1.Document.InvokeScript("jQuery") != null; 您是否尝试过:

我有一个C#/Visual Studio 2008中的Windows窗体应用程序,带有IE WebBrowser控件。在DocumentCompleted事件中,我想搜索WebBrowser.Document或WebBrowser.DomDocument,查看jQuery是否已经存在于页面中

实现这一目标的好方法是什么

谢谢

您是否尝试过:

bool hasjQuery = webBrowser1.Document.InvokeScript("jQuery") != null;
您是否尝试过:

bool hasjQuery = webBrowser1.Document.InvokeScript("jQuery") != null;

谢谢只要我能在几个案例中进行测试,我就会把你标记为答案。谢谢!,只要我能在几个案例中测试一下,我就会把你作为答案。