我有一个带有 fullcalendar.js 的日历。它在chrome上有效,但在Internet Explorer视图上无法呈现。这是我的代码:我正在从服务器获取事件,然后使用reRender函数对其进行呈现。这是一些代码:
data.eventClick = (calEvent, jsEvent, view) => this.eventClick(calEvent)
data.eventResize = (event, delta, revertFunc, jsEvent, ui, view) =>
{
this._taskService.updateTaskTime(event.start.format(),
event.end.format(), event.id, false);
};
data.dayClick = (date, jsEvent, view, resourceObj) =>
{
if (this.view !== 'week')
{
this.newTask([], date);
}
else
{
date = moment(resourceObj.id + 'T' + date.clone().format().split('T')[1]);
this.newTask([], date);
}
};
data.editable = true;
data.eventDurationEditable = true;
this.containerEl.fullCalendar(data);
this.containerEl.fullCalendar('option', 'locale', this.localeCode);
this.containerEl.fullCalendar('option', 'height', this.calendarHeight);
this.containerEl.fullCalendar('gotoDate', this.date);