我正在尝试按照此处的说明集成 Datatables + Bootstrap 2 。
捆绑所有数据表
//Bundling JQuery datatables scripts together
bundles.Add(new StyleBundle("~/bundles/DataTables").Include(
"~/Scripts/DataTables-1.9.4/media/js/DT_bootstrap.js",
"~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.js"));
bundles.Add(new StyleBundle("~/Content/DataTables-1.9.4/media/css/css").Include(
"~/Content/DataTables-1.9.4/media/css/DT_bootstrap.css",
"~/Content/DataTables-1.9.4/media/css/jquery.dataTables.css",
"~/Content/DataTables-1.9.4/media/css/jquery.dataTables_themeroller.css"
));
并在_layouts
页面中呈现
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/js")
@Scripts.Render("~/bundles/DataTables")
@Styles.Render("~/Content/DataTables-1.9.4/media/css/css")
如果我运行该页面,我会在media/js/DT_bootstrap.js
文件中收到此错误。