
html5 datagrid设置rowStyle
当“金额”一列大于500时该行前景色为红色,这样设置有什么问题?$('#XDataGrid1').datagrid({'rowStyle':function(index,...
当“金额”一列大于500时该行前景色为红色,这样设置有什么问题?
$('#XDataGrid1').datagrid({
'rowStyle':function(index,row)
{
if (row.je > 500)
{
return 'color:red;';
}
}
});
现在报错:uncaught syntaxerror :unexpected token; 展开
$('#XDataGrid1').datagrid({
'rowStyle':function(index,row)
{
if (row.je > 500)
{
return 'color:red;';
}
}
});
现在报错:uncaught syntaxerror :unexpected token; 展开
2个回答
展开全部
你确定row.je这个取值取到的是你要的东西么?
你的方法的参数index和row进来的是什么最好也确认一下
你的方法的参数index和row进来的是什么最好也确认一下
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询