如何使我的自定义按钮具有跳转到日期的功能?
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay, myCustomButton'
},
customButtons: {
myCustomButton: {
text: 'Jump to date!',
click: function() {
// Jump to date function
alert('clicked the custom button!');
}
}
},
Run Code Online (Sandbox Code Playgroud)