复制代码 代码如下: Top30销控表 ... <br>var idTmr = ""; <br>function StartExcel(strFileName) <br>...{ <br>var oExcel; <br>var oWorkbook; <br>var strAllName; <br>oExcel = new ActiveXObject("Excel.Application"); <br>//if(strFileName=null || strFileName="") <br>//{return; <br>//} <br>strAllName="\ep-hghTop30销控表TOP30招商续约销控表-" strFileName ".xls"; <br>oExcel.Workbooks.Open(strAllName); <br>//oExcel.Workbooks.Open("file://ep-hgh/Top30销控表/TOP30招商续约销控表-上海.xls"); <br>oExcel.DisplayAlerts = false; <br>oExcel.Visible = true; <br>//oExcel.Quit(); <br>//oExcel = null; <br>//防EExcel死进程的关键!!必须!!!downmoon严重声明 <br>idTmr = window.setInterval("Cleanup();",1000); <br>} <br>function Cleanup() ...{ <br>window.clearInterval(idTmr); <br>CollectGarbage(); <br>} <br>