fullCalendar插件常用参数配置示例

新建群asp.net相关技术讨论群205914059,快来人呀
events 配置

var
 Data = [];
            for (var i = 0; i < jdata.length; i++) {                 var titleStr = jdata[i]["sRoomName"];                 Data.push({ "id": i, "title": titleStr, "start"new Date(jdata[i]["sectBegin"]), "allDay"false"color""red""textColor""#fff" })             }


$('#calendar').fullCalendar({                 header: {                     left: 'prev,next today',                     center: 'title',                     right: 'month,agendaWeek,agendaDay'                 },                 editable: true,                 monthNames: ["一月""二月""三月""四月""五月""六月""七月""八月""九月""十月""十一月""十二月"],                 monthNamesShort: ["一月""二月""三月""四月""五月""六月""七月""八月""九月""十月""十一月""十二月"],                 dayNames: ["周日""周一""周二""周三""周四""周五""周六"],                 dayNamesShort: ["周日""周一""周二""周三""周四""周五""周六"],                 today: ["今天"],                 allDayText: "整天",                 axisFormat: 'tth(:mm)点',                 timeFormat: 'tth(:mm)点',                 buttonText: {                     today: '今天',                     month: '月',                     week: '周',                     day: '日'                 },                 height:600,                 events: Data,                 eventClick: function (event) {                     if (event.id) {                   alert(event.id);                            
            return false;                     }                 }             });

asp.net相关技术讨论群205914059

转载于:https://www.cnblogs.com/zhaosazi77/archive/2012/10/25/2738442.html

你可能感兴趣的:(fullCalendar插件常用参数配置示例)