📅  最后修改于: 2022-03-11 15:03:21.589000             🧑  作者: Mango
import readXlsxFile from 'read-excel-file'
const input = document.getElementById('input')
input.addEventListener('change', () => {
readXlsxFile(input.files[0]).then((rows) => {
// `rows` is an array of rows // each row being an array of cells.
})})