Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
VS2013 win 7 asp.net mvc,未调用Jquery document ready_Jquery_Asp.net_Document Ready - Fatal编程技术网

VS2013 win 7 asp.net mvc,未调用Jquery document ready

VS2013 win 7 asp.net mvc,未调用Jquery document ready,jquery,asp.net,document-ready,Jquery,Asp.net,Document Ready,我在VS2013中创建了一个简单的ASP.NET MVC应用程序。Jquery document ready代码添加到Index.HTML的以下脚本部分,以显示简单的警报消息: 从visual studio运行应用程序后,注意到消息未显示 以下是布局代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content=

我在VS2013中创建了一个简单的ASP.NET MVC应用程序。Jquery document ready代码添加到Index.HTML的以下脚本部分,以显示简单的警报消息:

从visual studio运行应用程序后,注意到消息未显示

以下是布局代码:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - My ASP.NET Application</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")    
</head>
<body>
    ...
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>
</html>

@ViewBag.Title-我的ASP.NET应用程序
@style.Render(“~/Content/css”)
@Scripts.Render(“~/bundles/modernizer”)
...
@Scripts.Render(“~/bundles/jquery”)
@Scripts.Render(“~/bundles/bootstrap”)
@RenderSection(“脚本”,必需:false)
使用Fiddler时,注意到jQuery已加载到浏览器中:


不确定发生了什么,请帮助

您是否收到任何客户端JavaScript错误?是否有其他建议?