//排序方式 asc: 升序、desc: 降序、null: 默认排序
initSort : {field: ‘dc_score’,type: ‘desc’}
var scoringData = table.cache["scoringTable"]; //scoringTable是render时设置的id
for( var i = 0;i<scoringData.length;i++ ){
if( scoringData[i].id == data.id ){
console.log(scoringData[i].dc_value);
//parseFloat( scoringData[i].dc_score );
}
}
table.reload('scoringTable'
,{initSort : {field: 'dc_score',type: 'desc'}
,data : scoringData });//scoringTable是render时设置的id
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)