Import/Export HTML5 localStorage data

旧街凉风 提交于 2019-12-17 23:18:07

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/2845603/import-export-html5-localstorage-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!