我一直在我们的混合html应用程序中使用filetransfer插件,它同时支持widows 8.1和ios和android,但我也需要它在Windows 10商店应用程序。现在看来似乎无法下载文件在Windows 10,请建议一些替代插件从服务器下载文件,或者如果我们得到了10cordova-plugin-file-transfer插件无法在Windows 10上运行sencha touch store应用程序
下面的代码示例
在windows这项工作var fileTransfer = new FileTransfer();
var uri = encodeURI("some_url.com");
var fileName = "localpathofwindows"
fileTransfer.download(uri, fileName,
function(entry) {
console.log("file download success");
},
function(error) {
console.log("file download failure");
},
false, {
headers: {
"Authorization": auth,
"action": "getFiles"
}
});
is fileTransfer.download()给你一个回调? – Perfection