我使用以下
从ASP.NET MVC的控制器获取数据 $.getJSON('@Url.Action("GetHolidayLists", "Holiday")', null, function (result) {
alert(JSON.stringify(result));
holidayList = result;
});
这是警告的结果:
[{"start":"/Date(1362139909000)/","title":"New Year's Day"},
{"start":"/Date(1364473601000)/","title":"Good Friday"},
{"start":"/Date(1376050863000)/","title":"National Day"},
{"start":"/Date(1387900800000)/","title":"Christmas Day"}]
最后,这就是我将json绑定到日历的方式:
$('#calendar').fullCalendar({
events: holidayList
});
但似乎没有任何东西加载到网格上。
答案 0 :(得分:1)
也许你在这篇文章中遇到与格雷厄姆查尔斯相同的问题:
FullCalendar won't bind to Json feed from ASP.NET MVC3 Action