3
function myFunction(check_in_time,check_out_time) {   
 $('#calendar').fullCalendar({
       events: [
        {
            title: 'Check-In-Out-Date',
            start: check_in_time,
            end: check_out_time,
            allDay: true
        }
       ],
     });
}

每次单击某个按钮时,我都使用 ajax 函数调用myFunction(check_in_time,check_out_time) 。它只是第一次改变。每次调用myFunction(check_in_time,check_out_time)时,我都需要我的日历更改事件。如何改进我的代码?感谢您。

4

0 回答 0