Import/Export HTML5 localStorage data
-
27-09-2019 - |
문제
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.
제휴하지 않습니다 StackOverflow