2
如何获取变量,网址和名称的fileDoesNotExist回调:变量传给回调函数
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)
感谢,那很简单! :-) – Harry 2013-03-22 14:32:07