1

问题:

当我加载日历数据时,所有其他浏览器都没有问题,但 IE10 可以。

到目前为止,我对 ajax 进行了调用cache: false,但这并不能解决问题。

现在奇怪的是,在 IE10 中,当您在日历中上下滚动时,数据会显示出来。:(

以前有人遇到过同样的问题吗?如果是这样,有什么建议吗?

注意:对不起我的英语。

============ ajax 调用数据 =========

$.ajax({
    type: 'get',
    url: '/getData',
    cache: false,
    data: formData,
    success: function(data) {
        var classes = [];
            var len = data.content.length;

            for ( var i = 0; i < len; i++ ) {
                var sDay = MAIN.calendar.getYearMonthDayNum().day(data.content[i].date),
                    eDay = MAIN.calendar.getYearMonthDayNum().day(data.content[i].date),
                    month = MAIN.calendar.getYearMonthDayNum().month(data.content[i].date),
                    year = MAIN.calendar.getYearMonthDayNum().year(data.content[i].date),

                    sHour = MAIN.calendar.getHourMinute24format().hour(data.content[i].start_time),
                    eHour = MAIN.calendar.getHourMinute24format().hour(data.content[i].end_time),
                    sMinutes = MAIN.calendar.getHourMinute24format().minutes(data.content[i].start_time),
                    eMinutes = MAIN.calendar.getHourMinute24format().minutes(data.content[i].end_time);

                classes.push({
                   "id":data.content[i].id,
                   "start": new Date(year, month, sDay, sHour, sMinutes),
                   "end": new Date(year, month, sDay, eHour, eMinutes),
                   "title":data.content[i].title,
                   "location": data.content[i].location != null ?  data.content[i].location.name : "",
                   "locationId": data.content[i].location != null ?  data.content[i].location.id : "",
                   "recurring": data.content[i].repeat_type,
                   "type": data.content[i].type,
                   "start_date" : data.content[i].start_date.substring(0, 10),
                   "end_date" : data.content[i].end_date.substring(0, 10),
                   "end_time" : data.content[i].end_time.substring(0, 5),
                   "start_time" : data.content[i].start_time.substring(0, 5),
                   readOnly : CANEDIT ? false : true
               });
            }

            MAIN.calendar.calData = classes;

            MAIN.calendar.generateCalendar();
    }
}); 
4

0 回答 0