这是我的bundleConfig.cs
bundles.Add(new ScriptBundle("~/bundles/js").Include(
"~/Scripts/moment.min.js",
"~/Scripts/jquery-1.11.1.js",
"~/Scripts/bootstrap.min.js",
"~/Scripts/bootstrap-datetimepicker.min.js",
"~/Scripts/jquery.dataTables.js",
"~/Scripts/jquery-ui-1.11.4.min.js",
"~/Scripts/formValidation.js",
"~/Scripts/r.js",
"~/Scripts/alertify.js",
"~/Scripts/select2.min.js",
"~/Scripts/toggles.min.js",
"~/Scripts/footable.min.js",
"~/Scripts/jquery.tooltipster.min.js"));
Bundle.config中的和css
<?xml version="1.0" encoding="utf-8" ?>
<bundles version="1.0">
<styleBundle path="~/Content/css">
<include path="~/Content/bootstrap.css" />
<include path="~/Content/bootstrap-datetimepicker.css" />
<include path="~/Content/jquery.dataTables.css" />
<include path="~/Content/Site.css" />
<include path="~/Content/jquery-ui.css" />
<include path="~/Content/select2.min.css" />
<include path="~/Content/formValidation.css" />
<include path="~/Content/toggles.css" />
<include path="~/Content/toggles-all.css" />
<include path="~/Content/toggles-full.css" />
<include path="~/Content/toggles-modern.css" />
<include path="~/Content/alertify.css" />
<include path="~/Content/alertif_theme_default.css" />
<include path="~/Content/footable.css" />
<include path="~/Content/tooltipster.css" />
<include path="~/Content/themes/tooltipster-light.css" />
</styleBundle>
</bundles>
在母版页中引用。
"bootstrap-datetimepicker.min.js" and "jquery-ui-1.11.4.min.js"
都有日期选择器。当在aspx页面中使用日期时间选择器时,我使用
$('#txtSaleDate').datepicker({
dateFormat: 'dd/mm/yy',
maxDate: "0d",
// format: 'dd/mm/yyyy'
});
$('#txtDeliveryDate').datepicker({
dateformat: 'dd/mm/yyyy',
minDate: "0d"
// format: 'dd/mm/yyyy'
});
但是这是来自jQuery UI的日期选择器。但我想在我的项目中使用bootstrap-datetimepicker。怎么用呢?????