Jquery File download ($.fileDownload)

后端 未结 5 752
清酒与你
清酒与你 2021-02-06 04:52

I am using jquery file download ..

the code is as follows :

 function downloadFile(){
var downloadOptions = {
preparingMessageHtml: \"We are preparing y         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-06 05:24

    In order to make JQuery knows the file download just ocurred, your response header must contains Set-Cookie: fileDownload=true; path=/.

    In Java:

    response.setHeader("Set-Cookie", "fileDownload=true; path=/");
    

提交回复
热议问题