JQuery fullCalender 在事件单击时显示未定义

问题描述 投票:0回答:1

当我单击任何事件时,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 "}],

javascript jquery fullcalendar
1个回答
0
投票

您的

url
属性包含无效 URL,请将
\
替换为
/

示例:

[
  {
    "title":"Palchin Agarwal",
    "id":9,
    "start":"2023-11-30",
    "end":null,
    "className":"bg-dark",
    "url":"http://www.appointments.com/edit/9"
  }
]
© www.soinside.com 2019 - 2024. All rights reserved.