本帖最后由 huangliliu0917 于 2017-10-29 17:36 编辑
产品版本:SpreadJS v10.1
浏览器版本:Google Chrome
问题描述:
执行以下代码,浏览器会卡死,请问有什么解决方案吗?
- var insertRowIndex = 7;
- var rowCount = 50;
- var sheet = spread.getActiveSheet();
- sheet.addRows(insertRowIndex, rowCount);
- for (var i = 0; i < rowCount; i++) {
- sheet.copyTo(insertRowIndex - 1, -1, insertRowIndex + i, -1, 1, -1, GC.Spread.Sheets.CopyToOptions.style);
- }
复制代码
[ ... ][...] var insertRowIndex = 7; Var rowCount = 50; Var = spread. GetActiveSheet board (); Table. AddRows (insertRowIndex rowCount); (var = 0; I < rowCount; I + +) {table. CopyTo (insertRowIndex - 1, 1, insertRowIndex + I, 1,1,1, GC. Spread. The Sheets. CopyToOptions. Style); } |
|