BufferedWriter bw = null
OutputStreamWriter osw = null
String headStr = "attachmentfilename=\"" + fileName + "\""
response.setContentType("APPLICATION/OCTET-STREAM")
response.setHeader("Content-Disposition", headStr)
osw = new OutputStreamWriter(outs, "GB2312")
bw = new BufferedWriter(osw)
这个只适用于IE<script type="text/javascript">
var Shell = new ActiveXObject("Shell.Application")
var Folder = Shell.BrowseForFolder(0, "", 0x0040, 0x11)
</script>
<input type="button" value="下载" onclick="window.document.execCommand('SaveAs')">仅限IE
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)