- const spread = GC.Spread.Sheets.findControl(document.getElementById('ss'));
- const excelIo = new GC.Spread.Excel.IO();
- const json = spread.toJSON({
- includeBindingSource: true,
- columnHeadersAsFrozenRows: true,
- });
- excelIo.save(json, (blob) => {
- saveAs(blob, fileName);
- }, (e) => {
- // error
- });
复制代码 我在前端进行导出时是通过上面的方式,但是导出的是全部数据,请问如何设置对部分数据进行导出?比如导出前三行?
|
|