我正在使用以下命令从 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
});
但似乎没有任何东西被加载到网格上。