html里能赋值,但不知道怎么用JavaScript赋值???

解决方案 »

  1.   

    很容易啊。不管你用什么办法你在js里得到数据之后就可以直接用
    ActiveX对象id.属性=数据 就赋值了
      

  2.   

    //汗。。
    新建ActiveX对象
    属性赋值了
    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();