2019独角兽企业重金招聘Python工程师标准>>>
renderCalendarView : function(){
var height = $(window).height() -54-10;
$("#pm-task-calendar-view").fullCalendar("destroy");
$("#pm-task-calendar-view").fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek'
},
height: height,
lang: "zh-cn",
buttonIcons: true,
weekNumbers: false,
allDaySlot: false,
allDayDefault:false, //默认为true改成false
editable: true,
eventLimit: 6,
nextDayThreshold: "09:00:00",
/**
eventLimit: {
'agenda': 5, // adjust to 6 only for agendaWeek/agendaDay
'default': true // give the default value to other views
},
**/
eventClick: function(event){
},
dayClick : function(date,jsEvent,view) {
},
eventDrop :function( event, delta, revertFunc, jsEvent, ui, view ){
},
eventResize: function( event, delta, revertFunc, jsEvent, ui, view ) {
},
events: function(start, end, timezone, callback) {
}
});
},
只需要将allDayDefault:true改成false即可。