简体   繁体   中英

Is there an issue passing data using window.name in a Phonegap application?

I'm creating a phonegap application for multiple platforms (specifically, Playbook and iPad) that requires passing a large amount of information between its pages. From what I've read on the subject, I have too much to pass through the URL. I also can't do anything server-side to pass the information. The only option I've found would be to use the window.name property. However, everything I've read was very clear on the fact that you should not do that, due to the security risks involved. In a phonegap application, do those risks still exist? Alternatively, is there a better way to pass information between pages in Phonegap?

localStorage is tailor made for what you are looking to do:

http://docs.phonegap.com/en/1.3.0/phonegap_storage_storage.md.html#localStorage

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