使用 Android 浏览器的 HTML5 离线存储
我正在研究如何使用 Android 设备来创建需要离线使用的网站。我还没有找到很多关于Android浏览器如何处理HTML5的localStorage和WebSQL的信息。有人知道这些的尺寸限制吗?它们是否可以更改(我知道移动 Safari 允许 WebSQL 如果需要存储最多 50mb)。
另外,有什么关于Android浏览器的好资源吗?我还没找到什么好东西。
谢谢。
I am investigating using an Android device for a website that needs to be usable offline. I have not been able to find much information on how the Android browser handles HTML5's localStorage and WebSQL. Does anyone know the size limit for these? Are they changeable (I know mobile Safari allows WebSQL to store up to 50mb if requested).
Additionally, any good resources on the Android browser? I haven't been able to find anything good.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
今年在柏林举行的 JSConf.eu 上有一次关于客户端持久存储的讨论。有些幻灯片还涉及 Android 2.1/2.2 浏览器,也许它们可以给您一些提示:
http://www.slideshare.net/jensarps/the-hitchhikers-guide-to-client-side-persistent-storage
There was a talk about client side persistent storage at this years JSConf.eu in Berlin. Some of the slides also touch the Android 2.1/2.2 browser maybe they can give you some hints:
http://www.slideshare.net/jensarps/the-hitchhikers-guide-to-client-side-persistent-storage
查看使用 jquery mobile 或 sencha 作为在线/离线应用程序的框架。使用缓存清单并不是非常困难,有很多教程:
http://www.nils-dehl.de/2010/06/how-to-make-a-sencha- touch-app-offline-usable-with-the-html5-cache-manifest/
Check out using jquery mobile or sencha as your framework for your online/offline app. Using a cache manifest isn't terribly difficult there are a bunch of tutorials out there:
http://www.nils-dehl.de/2010/06/how-to-make-a-sencha-touch-app-offline-usable-with-the-html5-cache-manifest/