【发布时间】:2017-02-20 22:21:52
【问题描述】:
使用今天最新版本的 Android 版 Chrome,我可以使用 navigator.webkitPersistentStorage.requestQuota 请求持久的 IndexedDB 存储吗?
var requestedBytes = 1024*1024*1024;
navigator.webkitPersistentStorage.requestQuota (
requestedBytes, function(grantedBytes) {
console.log('we were granted ', grantedBytes, 'bytes');
}, function(e) { console.log('Error', e); }
);
或者,navigator.webkitPersistentStorage.requestQuota 是否仍然只适用于FileSystem API?
【问题讨论】:
标签: google-chrome local-storage google-chrome-app indexeddb persistent-storage