java IE不使用jQuery文件下载插件下载文件
我在java代码中使用了jQuery文件下载插件,可以与Firefox和Chrome配合使用,但不会使用Internet Explorer开始下载。 我设置了以下标题:
response.setHeader("Set-Cookie", "fileDownload=true; path=/");
response.setHeader("Content-Disposition","attachment; filename="+file);
在我的javascript中,我使用以下代码:
$.fileDownload(
"/async/paas/caaas/downloadCertificate/"+serialNumber,
{
successCallback: function (url) {
//
},
failCallback: function (HttpServletResponse, url) {
$(“#modalDownloadFailedCertificate”).modal("show");
}
}
);
return false;
在IE中,使用F12模态,我有这一行:
URL:async/paas/caaas/downloadCertificate/591C94
梅托多:去(苏斯佩索…)
Risultato:(在sospeso…)
蒂波:(在索斯佩索…)
Ricevuti:0b
节奏impiegato:(在sospeso…)
Initiatore:esplorazione框架
有人也有同样的问题吗? 提前谢谢
共 (0) 个答案