plus.io.resolveLocalFileSystemURL(localFilePath, function(entry) {
fileObj.type == "image" ? ui.showPicture(fileObj, 1, 1) : ui.showVideo(fileObj, 1, 1);
}, function(e) {
plus.io.resolveLocalFileSystemURL(downloadFilePath, function(entry) {
fileObj.type == "image" ? ui.showPicture(fileObj, 0, 1) : ui.showVideo(fileObj, 0, 1);
}, function(e) {
if (plus.networkinfo.getCurrentType() != plus.networkinfo.CONNECTION_NONE) {
ui.toDoDownload(fileObj, 1);//此处下载成功,但是文件却没有出现在文件系统中
} else {
ui.showFileDownloadFaild(fileObj);
ui.judgeType(ui.currentDownloadImages);
}
});
});
log如下:
Error-2 - failed to get the dir of file: {"code":10,"message":"执行出错"}
leah_huang
- 发布:2016-06-23 16:45
- 更新:2018-09-21 16:41
- 阅读:1992
2 个回复
飞apple55
请问这个问题怎么解决的??
8***@qq.com
请问这个问题怎么解决的