最近好几个哥们问这个问题,写在这里备查吧。
<%
response.setContentType("application/octet-stream");
response.addHeader("Content-Disposition","attachment; filename=1.txt");
out.print("First line text./r/n");
out.print("Second line./r/n");
%>
2022-03-06 17:50:07
最近好几个哥们问这个问题,写在这里备查吧。
<%
response.setContentType("application/octet-stream");
response.addHeader("Content-Disposition","attachment; filename=1.txt");
out.print("First line text./r/n");
out.print("Second line./r/n");
%>