【发布时间】:2018-09-15 08:18:53
【问题描述】:
下面是我的代码(表单是我要下载的文件的名称)
var fileURI = "http://myurl/"+form;
window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(fs){
var filepath = fs.root.fullPath + "storage/emulated/0/Download/" + Form;
alert(filepath);
var ft = new FileTransfer();
ft.download(fileURI, filepath, function(entry){
alert(entry.fullPath);
}, function() {
alert("error");
});
});
令人惊讶的是,该代码在我的 android 手机上运行良好,但对于使用此应用程序的其他 android 设备而言,情况并非如此。我现在傻眼了,任何类型的帮助现在都会很棒。 TIA
【问题讨论】:
标签: android cordova hybrid-mobile-app monaca multi-device-hybrid-apps