导入/导出HTML5 localStorage数据 [英] Import/Export HTML5 localStorage data
问题描述
我正在制作一个基于localStorage HTML5功能的简单TODO列表应用程序:
http://hamen.github.com/webnotes/
我想知道是否可以导入/导出数据以某种方式。我如何提供导出注释/导入注释功能,以使用户能够将注释保存在他们的HD上并将其导入其他浏览器配置文件中?
谢谢
我认为您可以使用HTML File API从文件加载和数据URI( http://en.wikipedia.org/wiki/Data_URI_scheme 。
I'm working on a simple TODO list app based on localStorage HTML5 feature:
http://hamen.github.com/webnotes/
I'm wondering if it's possible to import/export data in some way. How could I provide an "Export note/Import note" feature to make users being able to save their note on their HD and import them in another browser profile?
Thanks
I think you can use the "HTML File API" to load from file and a "Data URI" (http://en.wikipedia.org/wiki/Data_URI_scheme) to save.
这篇关于导入/导出HTML5 localStorage数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!