【发布时间】:2015-01-28 13:29:41
【问题描述】:
我正在使用这个插件通过 jquery 下载文件。 问题是当我正确下载文件时我也输入了失败功能。这是我的代码:
function openDownloadDialog(serialNumber) {
//TODO gestire okButton per scaricare la chiave
$.fileDownload("/async/paas/caaas/downloadCertificate/"+serialNumber)
.done(function (url) {
$("#modalDownloadFailedCertificate").modal("hide");})
.fail(function (responseHtml,url) {
$("#modalDownloadFailedCertificate").modal("show");
});
}
我该如何解决这个问题? 提前致谢
【问题讨论】:
-
我的网络服务 /async/paas/caaas/downloadCertificate/ return true o false, FileDownload 需要什么?
标签: javascript jquery file download