日期:2014-05-18  浏览次数:20854 次

在JS中创建一个输出流的对象,知道的进~~
我想在JS中创建一个输出流的对象。
在类中我可以这样写。
OutputStream out = new FileOutputStream(new File("hq_love.xls"));
但,在JS中我该怎么样写呢?
如果有人答复的话,非常感谢!!!

------解决方案--------------------
帮忙顶一下,让了解的人来解答.
------解决方案--------------------
http://tech.ddvip.com/2006-04/11444713204524.html
LZ看下

------解决方案--------------------
是不是
InputStream in = new FileInputStream(new File("hq_love.xls")); 
是这样的吧。

------解决方案--------------------
<% InputStream in = new FileInputStream(new File("hq_love.xls")); %>

------解决方案--------------------
<script >
function func(){
var ExcelSheet;
ExcelApp = new ActiveXObject("Excel.Application");
ExcelSheet = new ActiveXObject("Excel.Sheet");

ExcelSheet.Application.Visible = true;

ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1";

ExcelSheet.SaveAs("C:\\TEST.XLS");

ExcelSheet.Application.Quit();
}
</script >
<input type="button" value="click" onclick="func();"/>

试试这个
------解决方案--------------------
不可以,除非象楼上的运用一下浏览器插件!

JS只是脚本而已
------解决方案--------------------
不懂,帮顶了