2

使用今天最新版本的Android版Chrome,我是否可以通過navigator.webkitPersistentStorage.requestQuota請求持久的IndexedDB存儲?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

回答