1 spread.suspendPaint(); 2 var sheetJson = JSON.stringify(spread2.getSheet(0).toJSON()); 3 var index = spread.getSheetCount(); 4 spread.addSheet(index); 5 spread.getSheet(index).fromJSON(JSON.parse(sheetJson)); 6 spread.getSheet(index).name("更改sheet名字" + index); 7 //拷贝样式 8 spread2.getNamedStyles().forEach(function (namedStyle) { 9 spread.addNamedStyle(namedStyle); 10 }) 11 spread.resumePaint();