我正在尝试将值从 index.html 传递到其他 html 文件。如何在其他页面使用在 index.html 中创建的值?
最佳答案
在 page1.html 中:
localStorage.setItem("myValue", myValue);
在 page2.html 中
var myValue = localStorage.getItem("myValue");
关于android - 在 Phonegap for android 中的 Html 页面之间传递值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10430595/