cordova.file.tempDirectory
我们想使用我们尝试过的文件插件读取图像名称表单
$cordovaFile.readAsText(cordova.file.tempDirectory)
.then(function (success) {
console.log("success2"+success);
}, function (error) {
console.log("error"+error);
});
But We got error
ERROR: Wrong type for parameter "path" of DirectoryEntry.getFile: Expected String, but got Undefined.
2016-08-25 09:23:28.958 DPOD[3482:38292] Error in Success callbackId: File1548160221 : TypeError: Wrong type for parameter "path" of DirectoryEntry.getFile: Expected String, but got Undefined.
cordova.file.tempDirectory 只有 10 个图像。所以我们需要 10 个图像名称。告诉我我们的代码有什么问题。请指导我们。