不应该是:
import XLSX from 'xlsx'
而应该是:
import * as XLSX from 'xlsx'
导入excel Uncaught TypeError: Cannot read properties of undefined (reading ‘read‘)
wx5909dcbadae4c 博主文章分类:vue ©著作权
文章标签 excel 文章分类 JavaScript 前端开发
不应该是:
import XLSX from 'xlsx'
而应该是:
import * as XLSX from 'xlsx'
导入excel Uncaught TypeError: Cannot read properties of undefined (reading ‘read‘)
调用location事件时获取。对象,是不行的,因为在。钩子函数中是获取不到。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M