简体   繁体   中英

How do I store data using PhoneGap, HTML/JavaScript, and jQuery Mobile?

I am using HTML and JavaScript to build an iPhone app via PhoneGap. I want to store data in the app as well. I know that HTML5 has sessionStorage, localStorage, and Web SQL databases. However, I haven't been able to figure out if clearing the iPhone Safari cookies and cache would kill any data stored in the app since it's using web storage. Would deleting the iPhone Safari cache and/or cookies kill the data?

If so, is there any other way to actually store data on the physical device through PhoneGap? What are some options that I have?

clearing the phone cache or cookies wont delete the data in the localstorage. that data wont go unless app data is deleted from settings.


for more info u can refer this - How permanent is local storage on Android and iOS?

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