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에서 지원하지 않는 것으로 밝혀하지만 잘못된 코드로 여기에서 갈 곳 확실하지 않다 나는 jquery 파일에 있습니다.

답변

17

IE8을 지원하지 않는 jQuery 2.0을 사용하고 있습니다.

IE8을 지원하려면 jQuery 1.x를 사용해야합니다.

+0

많은 감사! 빨리되었습니다. – tr3v

+0

어떻게하면 1.x로 다운 그레이드 할 수 있습니까? – BlueChippy

+2

@BlueChippy : NuGet 콘솔에서 특정 버전을 설치하십시오. – SLaks