当我单击任何事件时,JQuery fullCalender 显示未定义的页面。
jQuery('#calendar').fullCalendar({
events:{!! $get_clients !!},
eventLimit: true,
header: { left: 'prev,next today',center: 'title',right: 'month,agendaWeek,agendaDay'},
eventClick: function (event, jsEvent, view)
{
window.location.href = event.url;
},
views: {
timeGrid: {
eventLimit: 6 // adjust to 6 only for timeGridWeek/timeGridDay
}
} });
JSON [{“title”:“Palchin Agarwal”,“id”:9,“start”:“2023-11-30”,“end”:null,“className”:“bg-dark”,“url”:“ http:\www.appointments.com dit\9"},{"title":"Ed Sheeran","id":17,"start":"2024-01-11","end":null," className":"bg-dark","url":"http:\www.appointments.com dit "}],
您的
url
属性包含无效 URL,请将 \
替换为 /
。
示例:
[
{
"title":"Palchin Agarwal",
"id":9,
"start":"2023-11-30",
"end":null,
"className":"bg-dark",
"url":"http://www.appointments.com/edit/9"
}
]