我正在使用Jquery完整日历资源视图进行调度,并且工作正常(正如预期的那样),但它在chrome中产生了一些问题。
你可以清楚地看到,在18日和19日,事件时间相同,但它以错误的顺序显示事件 Plz ......帮助我解决这个问题。
这是我数据库中的一些gson数据。
{"allDay":"false","color":"","end":"2013-12-18T00:00","resource":10,"start":"2013-12-18T00:00","title":"01:00 to 08:00","__hashCodeCalc":false},
{"allDay":"false","color":"","end":"2013-12-18T00:00","resource":10,"start":"2013-12-18T00:00","title":"09:00 to 21:00","__hashCodeCalc":false},
{"allDay":"false","color":"","end":"2013-12-19T00:00","resource":10,"start":"2013-12-19T00:00","title":"01:00 to 08:00","__hashCodeCalc":false},
{"allDay":"false","color":"","end":"2013-12-19T00:00","resource":10,"start":"2013-12-19T00:00","title":"09:00 to 21:00","__hashCodeCalc":false}
我试图改变我的gson数据的顺序,但它没有任何区别。 此代码在Firefox中正常运行。
答案 0 :(得分:0)
我发现铬需要开始时间。在制作活动时,我只需在数据中为每个事件添加一秒,它就可以正常工作 示例
{"allDay":"false","color":"","end":"2013-12-18T00:00:01-05:00","resource":10,"start":"2013-12-18T00:00:01-05:00","title":"01:00 to 08:00","__hashCodeCalc":false},
{"allDay":"false","color":"","end":"2013-12-18T00:00:01-05:00","resource":10,"start":"2013-12-18T00:00:01-05:00","title":"09:00 to 21:00","__hashCodeCalc":false}
只需改变这样的Gson数据就可以帮助你,因为它对我有用。