$.ajax({
url:"addExcelController.do?getcolrol",
data:submitData,
type:"Post",
dataType:"json",
async:false,
success:function(data){
for (var i=0;i<data.obj.length;i++){
var row=data.obj[i].rowd;
var col=data.obj[i].columnd;
//判断当前单元格是否有公式,如果有值还有公式,去除公式内容
if(!isBlankFn(sheet.getFormula(row,col))){
if(!isBlankFn(data.obj[i].colname)){
sheet.setFormula(row,col,"");
}
}
sheet.setBindingPath(data.obj[i].rowd,data.obj[i].columnd,data.obj[i].colname);
// console.log(row+"======"+col);
}
},
error:function(data){
$.messager.alert('错误',data.msg);
}
});
sheet.setBindingPath(data.obj[i].rowd,data.obj[i].columnd,data.obj[i].colname);
这句话导致了慢,有没有办法搞下 |