选择过滤器 - 重复数据

时间:2014-11-07 09:34:39

标签: jquery filter fullcalendar

创建Fullcallendar时遇到问题。我有

$('#calendar').fullCalendar{(
    eventSources: [url:'http://localhost:3000/alldata']
)};

这是有效的:我有一个日历,其中包含来自JSON的REST服务数据。

但我希望通过以下方式过滤数据:

$("#filter").change(function(){ 
   //function which remove All Events Source // dont remember the Syntax, left it on another PC
    value = Here I get the value of current selected option
    $("#calendar").fullCalendar("addEventSource", 'http://localhost:3000/alldata' + value);    
});

当我在同一个月的页面上对其进行过滤时,它可以正常工作,并且仅显示具有特定VALUE的数据。但如果我去上一个月或下个月,数据会重复!

我认为removeEvents将完成工作,但事实并非如此。

我该怎么办?

0 个答案:

没有答案
相关问题