fullcalendar“typeError:无法读取属性'hasTime'未定义的” [英] fullcalendar "typeError: Cannot read property 'hasTime' of undefined"
问题描述
我的jQuery Full Calendar工作正常,直到我添加了一些事件。我现在得到的错误:fullcalendartypeError:无法读取未定义的属性'hasTime'我认为这是指范围(JS中的fullcal.js行必须做范围标准化(当我console.log(范围)我得到了[对象对象],我有一个开始时间,增加了一个结束时间,并尝试将整天设置为true,但它不起作用。
请参阅 https://github.com/Brigette-Eckert/PacNW-Race-Calendar 存储库。 >
控制台打开的页面截图,以查看errror
这是因为我可以看到一个垃圾数据uglyHolidaySweaterRun15(字符串)在你的事件对象(raceJSON.js)之间。
一旦你删除它,你就可以使用它。
My jQuery Full Calendar was working fine until I added some events. I am now getting the error: fullcalendar "typeError: Cannot read property 'hasTime' of undefined" I think this is referring to range (JS lines in fullcal.js have to do with range normalization.( When I console.log(range) I get [object Object] . I have a start time, have added an end time and tried setting allday to true but its not working.
see https://github.com/Brigette-Eckert/PacNW-Race-Calendar for repository.
Screenshot of page with console open to see errror
Brigette,
This is because I could see a junk data "uglyHolidaySweaterRun15"(string) in between your event objects (raceJSON.js).
You can make it work once you remove that.
这篇关于fullcalendar“typeError:无法读取属性'hasTime'未定义的”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!