fullcalendar4.2.0 dateRender错误(仅ie)

时间:2019-06-18 02:59:28

标签: javascript calendar internet-explorer-11

我正在自定义fullcalendar4.2.0。我仅在IE(v.11)中收到“ datesRender错误”,但Firefox和Chrome运行良好。

救救我!

datesRender: function(info) {//일 삭제   viewSkeletonRender
    if(info.view.type == 'dayGridMonth') {
        info.el.querySelectorAll('.fc-day-number').forEach(function(v,i,a) {
            a[i].innerText = v.innerText.replace(/일/, '');
        });
    } else if(info.view.type == 'timeGridWeek') {
        info.el.querySelectorAll('th.fc-day-header a').forEach(function(v,i,a) {
            var s = v.innerText.trim().split('.');
            a[i].innerHTML = '<small>'+s[2]+'<\/small>'+s[1];
        });
    }
}

IE中的错误消息:

  

window.onload中的异常:错误:JSPlugin,3005出现错误

1 个答案:

答案 0 :(得分:0)