JS把文件保存在Excel中

// Declare the variables var Excel, Book;
// Create the Excel application object. Excel = new ActiveXObject("Excel.Application");
// Make Excel visible. Excel.Visible = true;
// Create a new work book. Book = Excel.Workbooks.Add()
// Place some text in the first cell of the sheet. Book.ActiveSheet.Cells(1,1).Value = "This is column A, row 1";
// Save the sheet. Book.SaveAs("C:\\TEST.XLS");
// Close Excel with the Quit method on the Application object. Excel.Application.Quit();
原文地址:https://www.cnblogs.com/12go/p/2194213.html