首页 > 技术文章 > easyui的 一些经验

guixiaoming 2017-11-24 09:39 原文

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="width: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"



推荐阅读