Commit 0c951c57 by stylefeng

Merge pull request !9 from liujiliang2008/master

parents 2e05768f 1c84f7e4
......@@ -83,7 +83,12 @@
tr.append(td);
}else{
var td = $('<td style="'+((column.width)?('width:'+column.width):'')+'"></td>');
td.text(item[column.field]);
// 增加formatter渲染
if (column.formatter) {
td.html(column.formatter.call(this, '', item, index));
} else {
td.text(item[column.field]);
}
tr.append(td);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment