if(typeof(this.spans)!='undefined'
&& this.spans.length>0){
var spanLength = this.spans.length;
for(var spanIndex=0;spanIndex<spanLength;spanIndex++){
var spanObj = this.spans[spanIndex];
this.sheet.addSpan(spanObj.row,spanObj.col,spanObj.rowCount,spanObj.colCount,GcSpread.Sheets.SheetArea.viewport);
}
}代码就和你给你的demo差不多。附件就是模板
|
|