-1

我正在使用 Jquery 完整的日历资源视图进行调度,并且工作正常(如预期的那样),但它在 chrome 中产生了一些问题。

追索观

您可以清楚地看到 18 日和 19 日的活动时间相同,但显示的活动顺序错误。
请...帮我解决这个问题。

这是我数据库中的一些 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 中正常工作。

4

1 回答 1

0

我发现chrome需要开始时间。在制作事件时,我只需为数据中的每个事件添加一秒钟,它就可以正常工作。

{"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 数据,它可能会对您有所帮助,因为它对我有用。

于 2013-09-30T11:56:11.813 回答