6
我最近將我的MVC 4應用程序從VS2010遷移到VS2012。一旦一切正常,我也從.Net 4.0遷移到.Net 4.5,我將NuGet軟件包升級到最新的穩定版本。Internet Explorer 8和jquery addEventListener
一切似乎工作正常,但我現在被告知,該應用程序不能使用IE8(也不是IE7),雖然每個其他瀏覽器似乎很好。出現
以下錯誤: -
SCRIPT438:對象不支持屬性或方法 '的addEventListener' 的jquery-2.0.3.js,線834字符4
生成的HTML如下所示: -
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
<link href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" rel="stylesheet"/>
<link href="/Content/site.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.core.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.resizable.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.selectable.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.accordion.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.autocomplete.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.button.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.dialog.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.slider.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.tabs.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.datepicker.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.progressbar.css" rel="stylesheet"/>
<link href="/Content/themes/base/jquery.ui.theme.css" rel="stylesheet"/>
<link href="/Content/menubar.css" rel="stylesheet"/>
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2compact"></script>
<script src="/Scripts/jquery-2.0.3.js"></script>
<script src="/Scripts/jquery-ui-1.10.3.js"></script>
<script src="/Scripts/jquery.validate.js"></script>
<script src="/Scripts/jquery.validate.unobtrusive.js"></script>
<script src="/Scripts/modernizr-2.6.2.js"></script>
</head>
我的搜索表明,這種方法不受IE8的支持,但我不知道在哪裏何去何從的問題的代碼我s在jquery文件中。
非常感謝!那很快。 – tr3v
任何想法如何降級回1.x? – BlueChippy
@BlueChippy:從NuGet控制檯安裝特定版本。 – SLaks