JSP下載文件下載我使用AJAX的文件。我有三個狀態:與阿賈克斯
"Download file" - before you click on the link.
"File is downloading..." - while the file is downloading
"Download file" - if the file was generated successful
"Error while downloading file" - if there was any error while download the file.
我使用JSP,jQuery的阿賈克斯。如何確定使用ajax下載文件時出錯或下載成功。
下載文件究竟如何?發佈您的代碼! – adeneo
無論如何,瀏覽器會這樣做,爲什麼你要第二次實現它? – Uooo
只需撥打一個servlet至極寫在文件中的響應 –