在最新版本的Android系统WebView(M42 42.0.2311.129)中,混合应用程序中的localStorage似乎存在问题.
我已经提交了一个错误报告,但我试图找到一个解决方法,找不到localStorage中没有持久化的对象.
这是从错误报告中获取的:
Steps to reproduce the problem:
1. Start hybrid app built with phonegap
2. In app, call javascript localStorage.setItem("m42bug","test for localstorage")
3. Through developer tools debugging confirm object has been stored: localStorage.getItem("m42bug")
4. Close app
(swipe it away, force close it or restarting the device all cause the same)
5. Start app
6. In app, call javascript localStorage.getItem("m42bug")
Run Code Online (Sandbox Code Playgroud)
预期的行为是什么?
localStorage.getItem("m42bug") 应返回值"test for localstorage"
什么地方出了错?
localStorage.getItem("m42bug") 返回null.
Object.keys(localStorage) 表明没有钥匙 m42bug
| 归档时间: |
|
| 查看次数: |
1017 次 |
| 最近记录: |