我究竟做错了什么?......
我在捆绑脚本中注册jquery.maskedinput-1.3.min.js的方式与我注册其他几个脚本的方式完全相同,但由于某种原因,这个脚本的捆绑简单不起作用......
我尝试了以下捆绑注册相同的结果:
bundles.Add(new ScriptBundle("~/bundles/jquery.maskedinput").Include(
"~/Scripts/jquery.maskedinput-{version}.js"
));
bundles.Add(new ScriptBundle("~/bundles/jquery.maskedinput").Include(
"~/Scripts/jquery.maskedinput.js"
));
bundles.Add(new ScriptBundle("~/bundles/jquery.maskedinput").Include(
"~/Scripts/jquery.maskedinput.min.js"
));
bundles.Add(new ScriptBundle("~/bundles/jquery.maskedinput").Include(
"~/Scripts/jquery.maskedinput-{version}.min.js"
));
bundles.Add(new ScriptBundle("~/bundles/jquery.maskedinput").Include(
"~/Scripts/jquery.maskedinput-1.3.min.js"
));
这是呈现的 HTML
<script src="/bundles/jquery.maskedinput?v=" type="text/javascript"></script>
但是我的包裹是空的
这是我在我的注册MasterPage
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="true">
<Scripts>
<%--Framework Scripts--%>
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="jquery.ui.combined" />
<asp:ScriptReference Name="WebForms.js" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />
<asp:ScriptReference Path="~/bundles/jquery.validation" />
<asp:ScriptReference Path="~/bundles/jquery.maskedinput" />
<%--Site Scripts--%>
</Scripts>
</ajaxToolkit:ToolkitScriptManager>
这是我在 Visual Studio 2012 中的脚本截图
这是怎么回事??我只是不明白