本帖最后由 1225932566 于 2017-11-17 10:10 编辑
- TypeError: Cannot read property 'validator' of undefined
- at I (gc.spread.sheets.all.10.3.1.min.js:27)
- at H.fromJSON (gc.spread.sheets.all.10.3.1.min.js:27)
- at ca (gc.spread.sheets.all.10.3.1.min.js:36)
- at pa.fromJSON (gc.spread.sheets.all.10.3.1.min.js:37)
- at ta.fromJSON (gc.spread.sheets.all.10.3.1.min.js:38)
- at Object.success (budgetFill.js?1.21:850)
- at fire (jquery-2.0.2.js:2939)
- at Object.fireWith [as resolveWith] (jquery-2.0.2.js:3051)
- at done (jquery-2.0.2.js:7413)
- at XMLHttpRequest.<anonymous> (jquery-2.0.2.js:7835)
复制代码- var spread = GC.Spread.Sheets.findControl($('#ss')[0]);
- var tempSpread = new GC.Spread.Sheets.Workbook();
- tempSpread.fromJSON(JSON.parse(json));
- var tplSheetsCount = tempSpread.getSheetCount();
- for (var i = 0; i < tplSheetsCount; i++) {
- var tplSheet = tempSpread.getSheet(i);
- var sheetName = tplSheet.name();
- if (!spread.getSheetFromName(sheetName)) {
- spread.addSheet(i, tplSheet);
- }
- }
复制代码
|
|