EasyUI dataGrid 备忘

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

function shzModifyHis(value, rowData, rowIndex){
        if(rowData.字段名!= null){
            return "<input type='button' value='按钮名' />";
        }
    }
原文地址:https://www.cnblogs.com/cmelody/p/8430380.html