有谁能帮我把下面的代码换成js代码啊??想嵌入网页中
Set objExcel = CreateObject( "Excel.Application ")
Set objWorkbook = objExcel.Workbooks.Open _
( "C:\Book.xls ")
intRow = 1
Do Until objExcel.Cells(intRow,1).Value = " "
Wscript.Echo "BookName: " & objExcel.Cells(intRow, 1).Value
Wscript.Echo "TypeID: " & objExcel.Cells(intRow, 2).Value
Wscript.Echo "ISBN: " & objExcel.Cells(intRow, 3).Value
Wscript.Echo "Price: " & objExcel.Cells(intRow, 4).Value
intRow = intRow + 1
Loop
objExcel.Quit
谢谢了,我没有学过js,以上一段代码是用来对excel进行解析
还有我想用一个数组记录比如objExcel.Cells(intRow, 4).Value 的值,应该怎么写?
------解决方案--------------------看看这个:
http://ggcong.spaces.live.com/blog/cns!ccfa94a0e5ac09e6!163.entry
JS读取并导入EXCEL