Vue中使用el-upload+XLSX实现解析excel文件为json数据

安装

npm i [email protected]

代码实现

html部分


          批量导入
          
        

js部分

handlePreview(file) {
      console.log(file)
    },
    handleExceed(files, fileList) {
      this.$message.w

你可能感兴趣的:(工作笔记,vue.js,excel,json)