ctx.set("Content-disposition", "attachment; filename=district.csv");
ctx.set("content-type", "text/csv; charset=utf-8");
ctx.statusCode = 200;
ctx.body = csv;
set excel to open or garbled in this way
ctx.set("Content-disposition", "attachment; filename=district.csv");
ctx.set("content-type", "text/csv; charset=utf-8");
ctx.statusCode = 200;
ctx.body = csv;
set excel to open or garbled in this way
what is your csv
Previous: The solution to the Cross-domain problem of different Ports in Angular
Next: Bug generated when the PHP include_once file changes the user to which it belongs