Asp.net mvc 4 MVC4未处理的异常:Microsoft JScript运行时错误
我有一个刚刚启动的应用程序MVC4。我运行该解决方案并得到一个错误:Asp.net mvc 4 MVC4未处理的异常:Microsoft JScript运行时错误,asp.net-mvc-4,razor,runtime-error,jscript,Asp.net Mvc 4,Razor,Runtime Error,Jscript,我有一个刚刚启动的应用程序MVC4。我运行该解决方案并得到一个错误: Microsoft JScript runtime error "The object doesn't accept this property or method" 我的Index.cshtml文件 @{ ViewBag.Title = "Menu Principal"; } <h2>Home</h2> 非常感谢您的帮助。您正在IE
Microsoft JScript runtime error "The object doesn't accept this property or method"
我的Index.cshtml文件
@{
ViewBag.Title = "Menu Principal";
}
<h2>Home</h2>
非常感谢您的帮助。您正在IE<9上使用jQuery 2.0,但它不支持
升级IE或降级jQuery。难以置信,整天都在为此奋斗,结果证明事情很简单。非常感谢。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
@Scripts.Render("~/bundles/jquery")
@RenderSection("scripts", required: false)
@RenderBody()
</body>
</html>
window.addEventListener( "load", completed, false );