脚本文件名:捆绑脚本文件未呈现。
jquery.transit.min.js
的文件是在脚本文件夹中,
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.unobtrusive*", "~/Scripts/jquery.validate*"));
bundles.Add(new ScriptBundle("~/bundles/jtransit")
.Include("~/Scripts/jquery.transit*"));
在我View
,
@Scripts.Render("~/bundles/jquery","~/bundles/jtransit")
@Scripts.Render("~/bundles/jqueryui")
@Scripts.Render("~/bundles/jqueryval")
渲染HTML
<script src="/Scripts/jquery-1.8.3.js"></script>
<script src="/Scripts/jquery-ui-1.9.2.js"></script>
<script src="/Scripts/jquery.unobtrusive-ajax.js"></script>
<script src="/Scripts/jquery.validate.js"></script>
<script src="/Scripts/jquery.validate.unobtrusive.js"></script>
jquery.transit.min.js
未呈现。我错过了什么?
好赶上!谢谢 – Eon
不能相信ASP.NET使用这个技巧。没有错误,只是失败而已! –
是的,最小文件让我......多么偷偷摸摸的小动作。 – afreeland