我在web.config中禁用了debuging后出错(js无法正常工作)。
错误消息
未捕获TypeError :(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值) (中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(中间值)(...)不是函数 在主?v = VPdue59YcM75gM2GvOg7lYl5EGJt6x7uXBepa5eFSTk1:3
BundleConfig.cs
bundles.Add(new Bundle(“〜/ bundles / jquery”)。包括( “〜/脚本/ JS / jquery.min.js”));
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/js/bootstrap.min.js"));
bundles.Add(new Bundle("~/bundles/index").Include(
"~/Scripts/js/isotope.min.js",
"~/Scripts/js/flexslider.min.js",
"~/Scripts/js/waypoints.min.js"
));
bundles.Add(new Bundle("~/bundles/main").Include(
"~/Scripts/js/nicescroll.min.js",
"~/Scripts/js/pace.min.js"
));
bundles.Add(new Bundle("~/bundles/custom").Include(
"~/Scripts/js/custom.js"
));
连接脚本的顺序
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@Scripts.Render("~/bundles/main")
@Scripts.Render("~/bundles/custom")
@Scripts.Render("~/bundles/index")
@Scripts.Render("~/bundles/custom")