首页 > 解决方案 > 全日历调度程序源

问题描述

我应该看到 2 列,“A 室”和“B 室”。但是,我只能看到一列没有。请让我知道我错过了什么。先感谢您

<script>
  $(function() {

      // page is now ready, initialize the calendar...

      $('#calendar').fullCalendar({
          schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
        // put your options and callbacks here
          defaultView: 'agendaDay',
          events: [
            // events go here
          ],
        Resources: [
            { id: 'a', title: 'Room A' },
            { id: 'b', title: 'Room B', eventColor:'green'}
          ]
      })
  });
</script>

标签: fullcalendarscheduler

解决方案


您的资源已大写。您需要将其更改为小写

 resources: [
            { id: 'a', title: 'Room A' },
            { id: 'b', title: 'Room B', eventColor:'green'}
          ]

推荐阅读