我正在尝试删除 phonegap (iOS) 中的图像,所以我打电话:
window.resolveLocalFileSystemURI(imageURI, ok, no);
这调用了 ok 函数
function ok(entry) {
alert("Deleting: " + entry.name);
entry.remove();
}
所以一切都按计划进行,但我的图像仍然出现在我的库中。我究竟做错了什么?
完整来源:
window.resolveLocalFileSystemURI(imageURI, ok, no);
function ok(entry) {
alert("Delete file entry: " + entry.name);
entry.remove(pictureRemoved, notRemoved);
}
function pictureRemoved(){
alert('removed');
}
function notRemoved(){
alert('not Removed');
}
function no(error) { alert
("resolveFileSystemURI failed: " + error.code); }