Download file through an ajax call php

后端 未结 5 1327
别跟我提以往
别跟我提以往 2020-11-22 14:51

I have a button and onclick it will call an ajax function.

Here is my ajax function

function csv(){

    ajaxRequest = ajax();//ajax()          


        
5条回答
  •  渐次进展
    2020-11-22 14:53

    AJAX isn't for downloading files. Pop up a new window with the download link as its address, or do document.location = ....

提交回复
热议问题