EasyUI dataGrid 备忘

<th data-options="field:'字段名',width:宽度,align:'center[对齐方式]',formatter:shzModifyHis[函数名]"><span  style="font-weight:bold;">列名</span></th>

function shzModifyHis(value, rowData, rowIndex){
        if(rowData.字段名!= null){
            return "<input type='button' value='按钮名' />";
        }
    }

 

posted @ 2018-02-08 10:31  CMelody  阅读(97)  评论(0编辑  收藏  举报