我创建了一个日历:
for( var i=1; i <=12; i++){
$("#kalbody").append('<div id="kalenderLine' + i + '" class="kalenderLine"></div>');
$("#kalenderLine"+i).append('<div id="month'+i+'" class="monthName">'+getMonthname(i)+'</div>');
//tage für monate erstellen
for( var mi=1; mi <=getDays(i,Year); mi++){
//wochenenden
aktForDate = Year+"-"+i+"-"+mi;
var nowM = new Date(aktForDate);
var dayM = nowM.getDayName();
if(dayM == "Sa" || dayM == "So"){
wE=" weekend"
}
else{
wE="";
}
//wE="";
$("#kalenderLine"+i).append('<div id="'+mi+'-'+i+'-'+Year+'" class="dayCell'+wE+'"> <span class="dayCellNr">'+mi+'</span> </div>');
}
}
我想创建像:
这样的假期从至 10.01.2017-11.02.2017
我必须为此做些什么?有什么想法解决这个问题吗?