如何获取 fileDoesNotExist 回调的变量、url 和名称:
window.checkIfFileExists = function(path, url, name) {
return window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, (function(fileSystem) {
return fileSystem.root.getFile(path, {
create: false
}, fileExists, fileDoesNotExist);
}), getFSFail);
};
fileDoesNotExist = (fileEntry, url, name) ->
downloadImage(url, name)