<table id="dg" title="用户信息"
toolbar="#toolbar" pagination="true" idField="id"
rownumbers="true" fitColumns="true" singleSelect="true">
<thead>
<tr>
<th field="uid" width="100">编号</th>
<th field="uname" width="100" editor="{type:'validatebox',options:{required:true}}">名字</th>
<th field="ucard" width="100" editor="{type:'validatebox',options:{required:true}}">身份证</th>
<th field="ugender" width="100" editor="{type:'validatebox',options:{required:true}}",sortable:true,formatter:function(value,row,index){
console.log(value);
console.log(row.ugende);
if(row.ugende==1){
return '男';
}else if(row.ugende==2){
return '女';
}}>性别</th>
<th field="uphone" width="100" editor="{type:'validatebox',options:{required:true}}">电话</th>
<th field="ucount" width="100" editor="{type:'validatebox',options:{required:true}}">人住人数</th>
</tr>
</thead>
</table>
转换不了