|
下载完文件之后,点击文件不显示,是配置不对吗?
downloadManager.openManagerView({
title: '下载管理'
}, function(ret, err) {
if (ret) {
console.log(JSON.stringify(ret));
downloadManager.openDownloadedFile({
id: ret.id
}, function(ret, err) {
alert(JSON.stringify(ret));
// if (ret) {
// alert(JSON.stringify(ret));
// } else {
// api.toast({
// msg: ret.msg,
// duration: 2000,
// location: 'middle'
// });
// }
});
} else {
alert(JSON.stringify(err));
}
}); |
|