Javascript Chrome扩展名-配额超出错误(代码10),即使是空文件也是如此
我试图通过Chrome扩展上的HTML5文件系统API保存一个空文件Javascript Chrome扩展名-配额超出错误(代码10),即使是空文件也是如此,javascript,html,google-chrome-extension,filesystems,Javascript,Html,Google Chrome Extension,Filesystems,我试图通过Chrome扩展上的HTML5文件系统API保存一个空文件 $(document).ready(function() { navigator.webkitPersistentStorage.requestQuota( 1024*1024, function(grantedBytes) { window.webkitRequestFileSystem(PERSISTENT, grantedBytes, successCallback, errorCallb
$(document).ready(function() {
navigator.webkitPersistentStorage.requestQuota(
1024*1024,
function(grantedBytes) {
window.webkitRequestFileSystem(PERSISTENT, grantedBytes, successCallback, errorCallback);
console.log(grantedBytes);
},
function(e) {
console.log('Error', e);
}
);
customBarDocumentLoad();
booksDocumentLoad();
});
但是console.log(grantedBytes)代码>将“0”返回到控制台
我遗漏了什么?为什么会这样?显然,它已被弃用,只需直接使用requestFileSystem并处理配额错误即可。或者它是一个值得提交的bug,显然它已被弃用,只需直接使用requestFileSystem并处理配额错误即可。或者,这是一个值得提交的bug