有没有任何JavaScript库可以用来验证文件是否有效。
下面是无效的文件内容示例
BEGIN:VCALENDAR
END:VCALENDAR
看起来 https://github.com/mozilla-comm/ical.js/没有用。无法使上述文件无效。
没有事件。这也失败了 icalendar.org/validator.html(希望看到这样的东西(
您可以尝试通过 https://icalendar.org/validator.html 来使用服务器端验证 他们可以选择从 URL 中以 JSON 格式显示错误
https://icalendar.org/validator.html?url=https://example.com/somecalendar_feed&json=1