html
<input type="file" accept=".xls,.xlsx" class="upload-file" @change="changeExcel($event)" />.
// 1.安装npm install xlsx
// 2.引入xlsx
html
<input type="file" accept=".xls,.xlsx" class="upload-file" @change="changeExcel($event)" />.
// 1.安装npm install xlsx
// 2.引入xlsx