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.*便可拿到所要的值..................

相关文章:

  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
猜你喜欢
  • 2022-02-01
  • 2022-01-04
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案