【发布时间】:2015-11-21 01:42:18
【问题描述】:
我无法在全日历仪表板上显示事件(存在于我的数据库中)。我创建了一个 JSON 文件,其中包含我在运行时获取的 JSON 事件数组。我将 jquery 中事件的 url 作为
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
events: '${pageContext.request.contextPath}/calendarFetch',
我的动态生成的 json 文件具有这种格式的输出
{
"events": [
{
"start": "2015-11-09 01:30:00",
"end": "2015-11-09 02:30:00",
"title": "Meeting with Professor"
},
{
"start": "2015-11-09 01:30:00",
"end": "2015-11-09 02:30:00",
"title": "Meeting with Professor"
},
{
"start": "2015-11-09 01:30:00",
"end": "2015-11-09 02:30:00",
"title": "Meeting with Professor"
},
{
"start": "2015-11-09 01:30:00",
"end": "2015-11-09 02:30:00",
"title": "Meeting with Professor"
},
{
"start": "2015-11-09 01:30:00",
"end": "2015-11-09 02:30:00",
"title": "Meeting with Professor"
},
{
"start": "2015-11-09 01:30:00",
"end": "2015-11-09 02:30:00",
"title": "Meeting with Professor"
}
]
}
【问题讨论】:
标签: java jquery json fullcalendar