<script type="text/javascript">
var Shell = new ActiveXObject("Shell.Application")
var Folder = Shell.BrowseForFolder(0, "", 0x0040, 0x11)
</script>
代码如下: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)
四年了。你还在找答案么?楼主,你还在么?
四年了,你找了我四年了是吗?
我来了。你在哪?
<input type=button value=选择路径 onclick='javascript: new ActiveXObject("Shell.Application").BrowseForFolder(0, "请选择路径", 0, "")'>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)