0

我已经尝试了事件点击功能来获取日期,但我无法理解eventClick正在获取的参数。这是我的代码


 eventClick: function(info) {
                    $("#calendar-modal").html("");
                    var scheduleClick="info.event.getDate()";
                    var calendarEl = document.getElementById('calendar-modal');
                    var calendar = new FullCalendar.Calendar(calendarEl, {
                            plugins: [ 'interaction', 'timeGrid' ],
                            header: {
                                left: 'prev,next today',
                                center: 'title',
                                right: 'timeGridDay'
                            },
                            displayEventTime:false,
                            allDaySlot: false,
                            slotEventOverlap:false,
                            eventSources:[
                               {
                               url:'http://localhost/servrevo_web/booking/getBooking',
                               method:'POST',
                               color: '#87a900',  
                               textColor: 'black'
                               }
                               ],
                    });  
                    calendar.changeView('timeGridDay',scheduleClick);
                    calendar.render();
                    $('#timeSlot').modal('show');

变量scheduleClick没有得到任何帮助?

4

0 回答 0