C# 未捕获类型错误:$(…)。绑定后初始化不是函数

C# 未捕获类型错误:$(…)。绑定后初始化不是函数,c#,asp.net-mvc-4,bundling-and-minification,C#,Asp.net Mvc 4,Bundling And Minification,我正在使用System.Web.Optimization.dll捆绑我的javascript文件 我有两个不同的包 var jsBundle = new ScriptBundle("~/Content/scripts/jsBundle") .Include("~/Content/scripts/external/modernizr.2.6.2.js") // 2.6.2 .Include("~/Content/scripts/ex

我正在使用System.Web.Optimization.dll捆绑我的javascript文件 我有两个不同的包

 var jsBundle = new ScriptBundle("~/Content/scripts/jsBundle")
                .Include("~/Content/scripts/external/modernizr.2.6.2.js") // 2.6.2
                .Include("~/Content/scripts/external/jquery.js") // 1.9.1 min
                .Include("~/Content/scripts/external/jquery.migrate.js") // 1.1.1 min
                .Include("~/Content/scripts/external/jquery-ui.js") // 1.10.2
                .Include("~/Content/scripts/external/jquery.cookie.js")
                .Include("~/Content/scripts/external/jquery.touchpunch.js") // 0.2.2
                .Include("~/Content/scripts/external/jquery.toggle.button.js")
                .Include("~/Content/bootstrap/js/bootstrap.js") //2.3.2
                .Include("~/Content/mcustomscrollbar/mCustomScrollbar.concat.min.js")
                .Include("~/Content/scripts/external/jquery.masonry.min.js") //2.1.08
                .Include("~/Content/scripts/external/jquery.jnotify.min.js")
                .Include("~/Content/scripts/external/jquery.dynatree.js")
                .Include("~/Content/scripts/external/jquery.form.js")
                .Include("~/Content/scripts/external/WhenReady.js")
                .Include("~/Content/scripts/external/bbq.js")
                .Include("~/Content/scripts/external/select2.js")
                .Include("~/Content/scripts/external/jquery.unobtrusive-ajax.js")
                .Include("~/Content/scripts/external/jquery.querystring.js")
                .Include("~/Content/scripts/external/jquery.dropdown.js")
                .Include("~/Content/scripts/external/jquery.hotkeys.js")
                .Include("~/Content/scripts/kendo/kendo.all.min.js")
                .Include("~/Content/scripts/external/wysiwym/showdown.js")
                .Include("~/Content/scripts/external/wysiwym/wysiwym.js")
                .Include("~/Content/scripts/external/jquery.poshytip.js")
                .Include("~/Content/scripts/external/ToolTips.js")
                .Include("~/Content/scripts/external/jquery.placeholder.js")
                .Include("~/Content/scripts/external/jquery.selection.js")
                .Include("~/Content/scripts/external/snap.js")
                .Include("~/Content/scripts/external/chosen.jquery.js")
                .Include("~/Content/scripts/external/jquery.elevatezoom.js");

        jsBundle.Orderer = nullOrderer;
        bundles.Add(jsBundle);

当我将两者合并在一起时,浏览器无法识别我的初始化方法

这行代码工作正常

$('#mycal').initialize("/admin/Events/CalendarNextView", "True", "20", "/brainbank-default/admin/Events");
但在两者合并之后
我得到了未捕获的TypeError:$(…)。initialize不是一个函数

让我们看看你的合并版本不起作用。我如何将其粘贴到这里,太多了。让我们看看你的合并版本不起作用了。我怎么能把它粘贴到这里,太多了。
$('#mycal').initialize("/admin/Events/CalendarNextView", "True", "20", "/brainbank-default/admin/Events");