Download CSV file using “AJAX”

后端 未结 6 1129
感情败类
感情败类 2020-11-29 02:22

I\'m trying to accomplish a fairly simple task for my website, but I\"m not sure exactly how to go about it. I want the user to be viewing a table, then click a button, at w

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 02:54

    Well the point of using AJAX is to avoid a visible reload of the page. If you want a download, you want the opposite,- a brand new request from the browser. I'd say, just create a simple button pointing to your php page.

提交回复
热议问题