您的位置首页百科知识 怎么用response对象输出文本文件? Simone 发布于 2024-07-01 17:26:42 606 阅读 response.setContentType("application/x-msdownload;charset=UTF-8");response.setHeader("Content-Disposition","attachment;filename=" + java.net.URLEncoder.encode(fileName, "UTF-8"));fileName 为 文件名