简体   繁体   中英

jquery saving data until phonegap app closes?

Is there a way to write data to a storage that gets erased when phonegap mobile app closes? I used localStorage (html5) but this data does not get erased when app closes. How could I save data that last until app closes and I can't save it to variable because I use a lot of .js files and methods and don't want to pass all this variables with parameters.

尝试使用cookie,或者如果数据对于cookie而言太大,则HTML 5 sessionStorage可能会有所帮助

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