Javascript C#Winform中的JQuery崩溃
我有一个用C#编写的Winforms应用程序。Winform中只有一个Webbrowser控件,它显示一个简单的html页面 页面如下所示Javascript C#Winform中的JQuery崩溃,javascript,c#,jquery,winforms,jquery-ui,Javascript,C#,Jquery,Winforms,Jquery Ui,我有一个用C#编写的Winforms应用程序。Winform中只有一个Webbrowser控件,它显示一个简单的html页面 页面如下所示 <!doctype html> <html lang="en"> <head> <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script s
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.11.3.js"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script type="text/javascript">
$(function() {
$("#selectStores").selectmenu();
});
</script>
</head>
<body>
<div class="demo">
<div class="login-content">
<div class="username">
<div class="input-field">
<input type="hidden" class="inputfield" id="store" name="store">
<input type="text" class="inputfield" name="name" id="name">
</div>
</div>
<div class="password">
<div class="input-field">
<input type="text" class="inputfield" name="password">
</div>
<div id="chooseStoreLocation">
<select id="selectStores">
<option>20000</option>
</select>
</div>
</div>
<div class="password">
<div class="login-button">
<input class="button-short" type ="submit">
</div>
</div>
</div>
</div>
</body>
</html>
$(函数(){
$(“#选择存储”).selectmenu();
});
20000
问题是我启动应用程序时收到一条错误消息。
错误似乎出现在这里$(“#selectStores”)。selectmenu()代码>
该错误仅表示在中的第0行第0列中发生了错误
我的问题是,为什么它在chrome和普通IE中工作,但在我的webbrowser控件中不工作,有没有办法修复它
编辑:
我尝试了一个网站,在我的webbrowser控件中获得了示例(),它工作得很好。因此,它应该可以正常工作,但我做错了一些事情只是猜测,但是您的jquery版本非常旧,您是否在实际版本中尝试过相同的版本?我将尝试一下较新的版本(jquery2.x)不支持IE 6,7,8。C#webbrowser控件是一个IE控件,我猜它使用了上面提到的其中一个版本