[英]eventSources to events Json, full calendar
I'm trying to get my json call from eventSources to my events. 我正在尝试将我的json调用从eventSources传递到事件。
The json I get back in my eventSources is : 我在eventSources中得到的json是:
[{"title":"Title Test","start":"1305841052"}]
When I past this string into events, it display's the date correctly. 当我将此字符串传递到事件中时,它将正确显示日期。 Is there something i'm missing ?
我有什么想念的吗?
when you initialize the calendar, be sure to have the following: 初始化日历时,请确保具有以下内容:
$('#calendar').fullCalendar({
event: "json-feed.php",
//more inits...
})
your json-feed.php file should look similar to the following: 您的json-feed.php文件应类似于以下内容:
<?php
echo json_encode( array(
array(
'id' => 123,
'title' => "myevent",
'start' => "2011-05-24 10:05:00",
'end' => "2011-05-24 11:55:00",
'allDay' => false
),
//more events...
));
?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.