1. 渲染网络表格时,行操作
<th field="sort_num" width="10" data-options="field:'id',formatter: row_formater,onClickRow:re_sort" >排序值
js:
function row_formater(value, row, index) {
return '<input style="45px" id="sort_num_' + row.recommend_id + '" name="sort_num" onchange="re_sort('+ row.recommend_id + ')" value='+ value + ' />';
// return '<a href="#" onclick="delHsCode(' + index + ')">删除</a>';
}
function re_sort(recommend_id) {}
2.使用图标
class="easyui-linkbutton" iconCls="icon-help" plain="true" iconAlign="middile"