fullcalendar日历控件怎么点击某一天后改变点击那一天的CSS样式

html-css015

fullcalendar日历控件怎么点击某一天后改变点击那一天的CSS样式,第1张

dayClick: function(date, allDay, jsEvent, view) {

$(this).css('background-color', 'red')

var clickDate = view.calendar.formatDate(date,'yyyyMMdd')

window.location="${base}/admin/manager/holiday/save.action?holiday.date="+clickDate

},

保存可以考虑用异步

日历和时间代码:(加在空白处)

#header div.lc{background:url(http://danjo.ca/cgi-sys/Count.cgi?display=date&dformat=yymmdd&ft=0&dd=cd&timezone=GMT+0800) no-repeat 95% 30% !importantfilter:Chroma(Color="#EE0000")DropShadow(Color=gray, OffX=3, OffY=3, Positive=true) !important}/*日期*/

#header div.rc{background:url(http://danjo.ca/cgi-sys/Count.cgi?display=clock&tformat=24&ft=0&dd=cd&timezone=GMT+0800) no-repeat 95% 60%}

.stage{background:url() } /*时间*/