一、环境需要 需要xlsx包,安装方法: npm install xlsx --save 一个execl文件,并且放到vue项目的public目录下。 二、代码 新建一个.vue <template> <div> <el-button @click="beforeUpload()">加载数据