{{d.gid ==1 ? "layui-badge" : "layui-badge layui-bg-blue"}}
how to write if elseif else? with ternary expressions
the effect should be as follows
if(d.gid == 1) {
"layui-badge"
}elseif(d.gid == 2){
"layui-badge layui-bg-blue"
}elseif(d.gid == 3){
"xxxx"
}else{
"xxx"
}