{ header: " 变化(%) " , width: 75 , sortable: true , renderer: pctChange, dataIndex: ' pctChange ' } ,
function pctChange(val) {
if (val > 0 )
{
return ' <span style="color:green;"> ' + val + ' %</span> ' ;
} else if (val < 0 )
{
return ' <span style="color:red;"> ' + val + ' %</span> ' ;
}
return val;
}