由于数据库存储的数据是同步过来的,性别:1,2,状态:1,2,3,由此页面不能直接显示数字,需要格式化数字显示对应的文字
{
field : 'XB',
title : '性别',
align : 'center',
width : 80,
templet : function(d) {
if (d.XB =='1') {
return '男'
} else {
return '女'
}
}
},