- const beforeUpload = (arg) => {
- console.log('arg', arg)
- const excelIO = new GC.Spread.Excel.IO()
- excelIO.open(
- arg,
- function (json) {
- workbook = new GC.Spread.Sheets.Workbook()
- workbook.fromJSON(json)
- },
- function (e) {
- // process error
- console.log(e)
- },
- )
- return false
- }
复制代码 从16.0.3升级到16.2.5后,相同的代码,报以下的错误。
Cannot read properties of undefined (reading 'IO')
|