可能真的很简单,但是当我丢弃可辍学事件时,我想自动单击
$('#calendar').fullCalendar({ droppable: true, drop: function(date) { //the command go here! this.click or something like that } });
尝试以下:
eventDrop: function(event, delta, revertFunc) {
$(this).trigger('click');
},
eventClick: function(calEvent, jsEvent, view) {
console.log('event clicked');
}
https://jsfiddle.net/ewojadd3/