后端Nodejs利用node-xlsx模块读取excel
后端Nodejs(利用node-xlsx模块)
/** * Created by zh on 16-9-14. */ var xlsx = require("node-xlsx"); var list = xlsx.parse("/home/zh/桌面/API_BTN_DS2_zh_excel_v2.xlsx"); console.log(list[2]['name']); for(var rowid in list[2]['data']){ row=list[2]['data'][rowid]; console.log(row); }