jquery EasyUI的formatter函数当前记录record
To format a DataGrid column, we should set the formatter property which is a function. The format function contains two parameters:
- value: The current column value responding to field.
- record: The current row record data.
value-->对应字段的当前列值
record-->当前行记录数据
columns:[[
{field:'name',title:'广告系列',width:115,align:'center',
formatter:function(val,rec){
return '<a href="listByCamIdadGroupInfo.jspx?campaignId='+rec.googleCampaignId+'">'+val+'</a>';
}
},
直接使用rec.*便可拿到所要的值..................
by archie
posted on 2011-01-13 16:33 archie2010 阅读(2990) 评论(0) 编辑 收藏 举报