StockDTO
private boolean hiddenDeviateRate = true;//查询结果是否显示
-------------
$('#commonData_grid').datagrid({
columns : [ [
{
field : 'deviateRate',
title : '背离率',
align : 'center',
hidden: new Boolean(this.hiddenDeviateRate),
或者 hidden: this.hiddenDeviateRate,
sortable: true,
sorter:function(a,b){
return (a>b?1:-1);
}
},
] ],
注:this表示当前一行的这个对象
后台传过来的就是对象集合,每一个元素还是对象