简体   繁体   中英

Import/Export HTML5 localStorage data

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM