'Jquery'是未定义的错误 [英] 'Jquery' is undefined error
问题描述
我想点击一下打开JQuery对话框。当我点击一个单元格时,我得到了
'JQuery'是未定义的错误。
它适用于chrome。奇怪的是它在IE中工作直到昨天突然停止工作。
它在jquery-ui.js中给出了一个错误。在v1.11.4
我的代码看起来像
I am trying to open JQuery dialog on a click. When I click a cell I get
'JQuery' is undefined error.
It works in chrome. The strange thing is it worked in IE till yesterday and suddenly stopped working.
It gives me an error in in jquery-ui.js. in v1.11.4
My code looks like
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<%--<meta name="viewport" content="width=device-width" />--%>
<meta http-equiv="Page-Exit" content="Alpha(opacity=100)" />
<link href="Styles/Site.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"/>
< / head>
可能是什么问题?
我是什么尝试过:
我试过把Ui线放到库之后。该站点在Intranet中工作,因此也为兼容性添加了元标记。 IE11中网站的失效突然出现
</head>
What could possibly be the issue??
What I have tried:
I have tried putting the Ui line after library. The site works in intranet hence added the meta tag for compatibility too. The lapse of the site in IE11 has been sudden
推荐答案
您正在加载两个不同版本的jQuery和jQueryUI。您只需要加载其中一个。
You are loading two different versions of jQuery and jQueryUI. You only need to load one of each.
这篇关于'Jquery'是未定义的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!