导入代码:
var excelIo = new GC.Spread.Excel.IO();
var excelFile = document.getElementById("fileSelector2").files[0];
excelIo.open(excelFile,function(json){
json.version = "9.40.20161.0";
for(var sheetProp in json.sheets){
var sheet = json.sheets[sheetProp];
if(sheet.floatingObjects){
for(var foProp in sheet.floatingObjects){
var fo = sheet.floatingObjects[foProp]
fo.floatingObjectType = fo.typeName
}
}
if(sheet.protectionOptions){
sheet.protectionOption = sheet.protectionOptions;
}
}
var spread2 = $("#ss").data("spread");
spread2.fromJSON(json);
导入的excel 请看附件有中间的几个子表没有显示出来
2016年LTE建设任务总控表汇总20160905 - 副本.xlsx
(881.75 KB, 下载次数: 79)
|
|