//发布一个带参数据的例子
{ name : 'auditState', index : 'auditState',width : 60, align : 'center',formatter:function(cellvalue,options,rowObject){
var opinion = rowObject.auditOpinion;
return "审核通过";
}},
发布一个带参数的例子,主要是因为我传的是字符串,当时还专门调试了一下,搞了好半天
colModel:[
{name:'id',index:'id',width:'15%',sortable:false,align:"center",formatter:function(cellvalue, options, rowObject){
return ""+cellvalue+"";
}}
],
colModel可以这么写,字段就是可点击的了。
把它们选中 然后右击选择超链接