我想顯示像(2015年3月2日 - 2016年3月12日)多個日期選取範圍格式使用一個插件http://multidatespickr.sourceforge.net/,我嘗試下面的代碼如何在多日期選擇器插件中顯示月份名稱?
$(function() {
$(".datepicker").multiDatesPicker({
minDate: 0,
showButtonPanel: true,
changeMonth: true,
changeYear: true,
onSelect: function(dateText, inst) {
inst.settings.defaultDate = dateText;
}
});
});
,但它不能正常工作,有人能幫助我嗎?
你在哪裏要顯示一個月? – TheVillageIdiot
像輸入框格式一樣(2015年3月2日 - 2016年3月12日) –