最近好几个哥们问这个问题,写在这里备查吧。
<%
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");
%>
时间: 2024-10-28 15:02:50
最近好几个哥们问这个问题,写在这里备查吧。
<%
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");
%>