小编The*_*bie的帖子

在日历引导程序数组中推入数组

我正在创建一个日历以请假。在这段代码中,它是硬编码的,当然可以工作

var calendar = new Calendar(calendarEl, {
  plugins: [ 'bootstrap', 'interaction', 'dayGrid', 'timeGrid' ],
  header    : {
    left  : 'prev,next today',
    center: 'title',
    right : 'dayGridMonth,timeGridWeek,timeGridDay'
  },
  //Random default events
  events    : [ 

    {
      title          : 'All Souls Day',
      start          : new Date(y, m, 2),
      backgroundColor: '#f56954', //red
      borderColor    : '#f56954' //red
    },

  ],
  editable  : true,
  droppable : true, // this allows things to be dropped onto the calendar !!!
  drop      : function(info) {
    // is the "remove after …
Run Code Online (Sandbox Code Playgroud)

arrays ajax jquery fullcalendar fullcalendar-4

1
推荐指数
1
解决办法
45
查看次数

标签 统计

ajax ×1

arrays ×1

fullcalendar ×1

fullcalendar-4 ×1

jquery ×1