iPad上的iOS(Safari)中的Web SQL数据库的最大大小是多少? LocalStorage怎么样? [英] What is the maximum size of a Web SQL DB in iOS (Safari) on the iPad? How about LocalStorage?

查看:1529
本文介绍了iPad上的iOS(Safari)中的Web SQL数据库的最大大小是多少? LocalStorage怎么样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用HTML5的Web SQL在iPad上本地存储数据时的最大数据大小是多少?

What is the maximum data size when using HTML5's Web SQL to store data locally on the iPad?

当你达到这个目标时,它是否只是提示用户增加它?
这是一个简单的是/否许可请求?
如果是这样,硬限制是什么(超出该限制甚至没有用户允许扩展的选项)?

When you reach that, does it just prompt the user to increase it? Is that a simple yes/no permission request? If so, what's the hard limit (beyond which there isn't even the option of the user allowing it to expand)?

LocalStorage是否也能正常工作方式?

Does LocalStorage work the same way?

推荐答案

您的站点在Mobile Safari上创建的所有WEB SQL数据库的总限制为50Mb。要求用户确认接受5Mb以上,并且以后不能增加现有数据库的大小,只能创建新的,辅助数据库,因此必须在第一次创建数据库时进行规划并设置大小。

The total limit for all WEB SQL Databases created by your site on Mobile Safari is 50Mb. Users are asked to confirm acceptance above 5Mb and you cannot later increase the size of an existing database, you can only create a new, secondary, db, so you have to plan well and set the size when you first create the db.

var theBiggestDB = openDatabase('databaseName', '1.0', 'My Database', 50*1024*1024);

看到这个答案: https://stackoverflow.com/a/6281947/1233018

这篇关于iPad上的iOS(Safari)中的Web SQL数据库的最大大小是多少? LocalStorage怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆