0

我试图创建一个日历,但没有显示事件。我想知道是否有人可以帮助我。

以下是活动

$scope.events = [
          {title: 'Long Event',start: new Date('Thu Oct 17 2016 10:00:00 GMT+0530 (IST)'),end: new Date('Thu Oct 17 2013 17:00:00 GMT+0530 (IST)')},
          {id: 999,title: 'Repeating Event',start: new Date('Thu Oct 17 2016 09:00:00 GMT+0530 (IST)'),allDay: false},
          {id: 999,title: 'Repeating Event',start: new Date(y, m, d + 4, 16, 0),allDay: false},
          {title: 'Birthday Party',start: new Date(y, m, d + 1, 19, 0),end: new Date(y, m, d + 1, 22, 30),allDay: false},
          {title: 'Click for Google',start: new Date(y, m, 28),end: new Date(y, m, 29),url: 'http://google.com/'}
        ];    

这是事件源

 $scope.eventSource = {
            url: "http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic",
            className: 'gcal-event',           // an option!
            currentTimezone: 'America/Chicago' // an option!
          };

这是我初始化事件源并推送事件的地方。

 $scope.eventSources = [$scope.events, $scope.eventSource, $scope.eventsF];
4

0 回答 0