thedayofdays 普通
2019-05-25 开始修炼简单之道
刚刚
Jieven 发表了文章
59月前
thedayofdays 回复
最终解决方案是在 $(document).ready(function(){}中通过ajax获取条件实现的
59月前
thedayofdays 每日打卡
获得金币+11,获得点播券+1
59月前
thedayofdays 每日打卡
获得金币+6,获得点播券+1
59月前
thedayofdays 回复
@雷诺娃 @Override
protected void loginInit(Controller ctrl, User user) throws Exception {
super.loginInit(ctrl, user);

// 添加自定义业务信息到当前用户中
user.put("MyCondition", "3");/*test*/
}



/*格式化器中*/
function(value, row, index, field) {

//parseInt(${user.MyCondition})

if(${user.MyCondition}>1){

return '<b style="color:red">' + row.value + '</b>';

}else{

return '<b style="color:blue">' + row.value + '</b>';

}

}

${user.MyCondition}或者parseInt(${user.MyCondition}) 这样表格直接就不显示了,是哪里写的不对么
59月前
thedayofdays 回复
@雷诺娃 过滤条件中加可以,在格式化器中如何用呢
59月前
thedayofdays 创建了一个问题
59月前
thedayofdays 每日打卡
获得金币+11,获得点播券+1