jquery easyui 添加按钮逻辑,未渲染
更新:HHH   时间:2023-1-7


JSP中:数据网格定义中

<th data-options="field:'_operate',width:80,align:'center',formatter:formatOper">操作</th> 

关键是 formatter:formatOper


js中代码:

连接easyui中元件与动作

function formatOper(val,row,index){  

    return '<a href="#"     

}


//具体逻辑动作

function editer(index){  }

返回web开发教程...