Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Chrome扩展名-配额超出错误(代码10),即使是空文件也是如此_Javascript_Html_Google Chrome Extension_Filesystems - Fatal编程技术网

Javascript Chrome扩展名-配额超出错误(代码10),即使是空文件也是如此

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

我试图通过Chrome扩展上的HTML5文件系统API保存一个空文件

$(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