我有以下代码:
chrome.runtime.getPackageDirectoryEntry(function(directoryEntry)
{
directoryEntry.getFile("files/test.txt", {create: true, exclusive: false}, function(fileEntry)
{
console.log(fileEntry);
},
function(error)
{
console.log(error);
});
});
如果文件不存在并且创建为真,我会得到一个It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.
错误。但如果它确实存在并且创建为假,我就可以访问该文件。
我究竟做错了什么?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)