我正在使用 FullCalendar3.5.1 一切正常,除非当天有多个事件(它们通过 JSON 动态出现),它只显示 +N 更多。我看到的示例应该显示至少一个事件标题然后说+(N-1) 更多。但是对我来说,即使有 2 个事件,它也不会显示任何事件并说 +2
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: new Date(),
editable: true,
eventBackgroundColor: '#3672BB',
eventLimit: {
'default': false // display all events for other views
},
eventClick: function(calEvent, jsEvent, view) {
if (calEvent.isSvey){
LoadApptPage(calEvent.eventID,'2');
}
else{
LoadApptPage(calEvent.eventID,'1');
}
},
events: [{"aID":"62241-008","start":"10\/11\/2017","eventID":9608,"isSvey":1,"autoschld":0,"missed":0,"title":"62241-008 - "},{"aID":"162215-003","start":"10\/11\/2017","eventID":9606,"isSvey":1,"autoschld":0,"missed":0,"title":"162215-003 - Construction LLC"},{"aID":162738,"start":"10\/24\/2017","eventID":9607,"isSvey":1,"autoschld":1,"missed":0,"title":"162738 - "}],
eventRender: function(event, element) {
//element.find(".fc-title").remove();
element.find(".fc-time").remove();
var pbSveyFlag = event.isSvey ? 2 : 1;
//var new_description = '<a style="color:#FFF;font-Weight:bold;" href="javascript:LoadApptPage(' + event.eventID +',' + pbSveyFlag +')">'
// + event.title + '</a><br/><br/> +'
var new_description =
'<br/><a style="color:#FFF;font-Weight:bold;" href="javascript:LoadFurPage(' + ''' + event.aID + ''' +',' + '''+pbSveyFlag +''' +')">'
+ '<strong>View: </strong>' + '</a>' + ' '
+ generateLink(event.autoschld,event.missed,event.eventID,event.aID)
;
element.append(new_description);
}
});
});