Javascript Bootstrap&jQuery不会在IE9上呈现,只在chrome上呈现
我被难住了。突然,bootstrap和jquery停止在IE9上渲染。我试过chrome,但一切都正常。我尝试过清除浏览器缓存,重新安装jquery和引导,但它没有处于兼容模式。我再也不知道发生了什么事 我的捆绑包是:Javascript Bootstrap&jQuery不会在IE9上呈现,只在chrome上呈现,javascript,jquery,css,asp.net-mvc,twitter-bootstrap,Javascript,Jquery,Css,Asp.net Mvc,Twitter Bootstrap,我被难住了。突然,bootstrap和jquery停止在IE9上渲染。我试过chrome,但一切都正常。我尝试过清除浏览器缓存,重新安装jquery和引导,但它没有处于兼容模式。我再也不知道发生了什么事 我的捆绑包是: bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Ad
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
"~/Scripts/jquery-ui-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.validate*"));
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/Card-Theme.css",
"~/Content/site.css"));
bundles.Add(new ScriptBundle("~/bundles/knockout").Include(
"~/Scripts/knockout-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/knockout-mapping-latest").Include(
"~/Scripts/knockout.mapping-latest.js"));
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
"~/Content/themes/base/jquery.ui.core.css",
"~/Content/themes/base/jquery.ui.resizable.css",
"~/Content/themes/base/jquery.ui.selectable.css",
"~/Content/themes/base/jquery.ui.accordion.css",
"~/Content/themes/base/jquery.ui.autocomplete.css",
"~/Content/themes/base/jquery.ui.button.css",
"~/Content/themes/base/jquery.ui.dialog.css",
"~/Content/themes/base/jquery.ui.slider.css",
"~/Content/themes/base/jquery.ui.tabs.css",
// "~/Content/themes/base/jquery.ui.datepicker.css",
// "~/Content/themes/base/jquery.ui.progressbar.css",
"~/Content/themes/base/jquery.ui.theme.css"
));
// Set EnableOptimizations to false for debugging. For more information,
// visit http://go.microsoft.com/fwlink/?LinkId=301862
BundleTable.EnableOptimizations = true;
和my_Layout.cshtml:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - NSC App</title>
@Styles.Render("~/Content/css")
@Styles.Render("~/Content/themes/base/css")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@Scripts.Render("~/bundles/jqueryui")
@Scripts.Render("~/bundles/jqueryval")
@Scripts.Render("~/bundles/knockout")
@Scripts.Render("~/bundles/knockout-mapping-latest")
<script src="~/Scripts/moment.js"></script>
<script src="~/Scripts/Bindings/date.js"></script>
</head>
还有什么我可以试试的 当您在IE浏览器中按F12键以打开开发工具时,什么是文档模式,什么是文档模式?它们都是IE9标准。如果您保持开发工具打开并观察控制台,是否会看到任何错误消息?如果您查看网络选项卡,它是否能够成功地下拉脚本?是的,看起来我已经加载了脚本。控制台是空白的。在所有的网络选项卡上都没有javascript UI呈现,服务器对脚本的响应是什么,状态代码是什么?