问题 I have been struggling with Javascript array data to put it in excel on the client side. I have read this,How to export JavaScript array info to csv (on client side)? But that is for CSV. I want Excel. 回答1: I got a good answer. It may help someone out there function excelformat() { var result_table = [ ["Day", "Month", "Year"], ["1", "January", "2016"], ["2", "February", "2016"], ["3", "March", "2016"], ["4", "April", "2016"], ]; var lineArray = []; result_table.forEach(function(infoArray,