【发布时间】:2013-01-22 04:23:48
【问题描述】:
我想将一个目录从一个位置复制到另一个位置。 我对此进行了研究,发现了 copyTo Api。在该文档中,我从以下文档中找到了快速示例
function win(entry) {
console.log("New Path: " + entry.fullPath);
}
function fail(error) {
alert(error.code);
}
function copyDir(entry) {
var parent = document.getElementById('parent').value,
newName = document.getElementById('newName').value,
parentEntry = new DirectoryEntry({fullPath: parent});
// copy the directory to a new directory and rename it
entry.copyTo(parentEntry, newName, success, fail);
}
现在我如何混淆源路径变量和目标路径变量的位置? 谁能给我一个很好的例子
【问题讨论】:
标签: android ios cordova blackberry cordova-2.0.0