第一个回调就是成功的回调,workbook参数就是excel的实例,可以从此对象里获取数据
- wijmo.grid.xlsx.FlexGridXlsxConverter.loadAsync(grid, blob, null, function (workbook) {
- // user can access the loaded workbook instance in this callback.
- var app = worksheet.application ;
- ...
- }, function (reason) {
- // User can catch the failure reason in this callback.
- console.log('The reason of save failure is ' + reason);
- });
复制代码 |