i = 0;i < data.length;i++){
var thisTemplat = this.templat;
for(var j = 0;j < filedArr.length;j++){
var key = filedArr[j].substring(1,filedArr[j].length-1);
if(key == ''NO_''){ //序号标识
var value = (this.pageNo-1)*this.pageSize + i + 1;
thisTemplat = thisTemplat.replace(new RegExp(''\{''+key+''\}'',''gm''),value);
}else{
var value = data[i][key];
if(typeof(value) != "undefined" && value == null) value = '''';
thisTemplat = thisTemplat.replace(new RegExp(''\{''+key+''\}'',''gm''),value);
}
}
$(thisTemplat).appendTo($(''#tbody_id''+this.id));
}
}
this.pageBar = function(total){
var templatObj = $(this.templat);
var delChildren = templatObj.children('':gt(0)'');
delChildren.remove();
templatObj.children().attr(''colspan'',$(this.templat).children().size());
templatObj.children().attr(''align'',''right'');
var pageCount;
if(total % this.pageSize == 0) pageCount = total/this.pageSize;
else pageCount = parseInt(total/this.pageSize) + 1;
if(pageCount == 0) pageCount = 1;
var toolbar = "第"+this.pageNo+"/"+pageCount+"页("+total+"条记录)";
if(this.pageNo == 1) toolbar = toolbar + " 首