I've been searching for something similar tonight and found this jQuery plugin which seems that could help you out. You can directly generate .ics files "on the fly" with it which should be good for Google, Outlook, iCal and Yahoo.
For a pure javascript solution, there is ics.js. It generates ics files using solely javascript. The only downside is that it doesn't support older versions of IE.
发布评论
评论(6)
今晚我一直在寻找类似的东西,发现这个 jQuery 插件似乎可以帮助你。您可以使用它“即时”直接生成 .ics 文件,这对 Google、Outlook、iCal 和 Yahoo 应该很有用。
http://keith-wood.name/icalendar.html
我还没有机会虽然我自己测试了一下,但计划在接下来的几天内进行。然而HTH!
I've been searching for something similar tonight and found this jQuery plugin which seems that could help you out. You can directly generate .ics files "on the fly" with it which should be good for Google, Outlook, iCal and Yahoo.
http://keith-wood.name/icalendar.html
I haven't had a chance to test it myself though, but plan to do it in the next days. However HTH!
对于那些正在寻找替代方案的人。
http://addthisevent.com/
https://github.com/tardate/jquery.addtocalendar
For those who are searching for alternatives.
http://addthisevent.com/
https://github.com/tardate/jquery.addtocalendar
对于纯 JavaScript 解决方案,有 ics.js。它仅使用 javascript 生成 ics 文件。唯一的缺点是它不支持旧版本的 IE。
For a pure javascript solution, there is ics.js. It generates ics files using solely javascript. The only downside is that it doesn't support older versions of IE.
这是我使用的内容,以防它对任何人有帮助,我使用的是 ASP.NET MVC / C#,但应该为您提供自行构建它所需的要点。
展望与展望iCal:
Google:
Here is what I use in case it helps anyone, I'm using ASP.NET MVC / C# but should give you the gist of what's required to build it yourself.
Outlook & iCal:
Google:
对于日历事件,您可以使用此库
https://www.npmjs.com/package/add-event-to-日历
for calendar events, you can use this lib
https://www.npmjs.com/package/add-event-to-calendar
我认为这是做到这一点的最佳选择。该插件可以从 html 上的变量创建 .ics 文件。
http://addtocalendar.com/
I thinks this is the best option to do this. This plugin can create a .ics file from variables on html.
http://addtocalendar.com/