简体   繁体   中英

iphone offline webapp, how to handle storage of data?

I'm trying to build a simple iphone webapp. It's only purpose is to process a form, store that data in JSON, and display it on another page. My question is: how do I store this data offline, so that it is not cleared when I relaunch my webapp?

My goal is to visit my app in mobile safari, add it to my homescreen, and start using it.

Use localstorage API of html5 or better use websql. Both are persistent. If you want to create a native app from html5/js code use apache cordova otherwise no need.

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