怎么把jqgrid显示的字段设置成超连接

2025-02-11 17:49:03
推荐回答(3个)
回答(1):

//发布一个带参数据的例子
{ name : 'auditState', index : 'auditState',width : 60, align : 'center',formatter:function(cellvalue,options,rowObject){
    var opinion = rowObject.auditOpinion;
    return "审核通过";
}},

发布一个带参数的例子,主要是因为我传的是字符串,当时还专门调试了一下,搞了好半天

回答(2):

colModel:[
{name:'id',index:'id',width:'15%',sortable:false,align:"center",formatter:function(cellvalue, options, rowObject){
return ""+cellvalue+"";
}}
],
colModel可以这么写,字段就是可点击的了。

回答(3):

把它们选中 然后右击选择超链接