level 1
妖娆先生1111
楼主
view: {
fontCss: getFontCss
}
function getFontCss(treeId, treeNode) {
return (!!treeNode.highlight) ? {color:"#A60000", "font-weight":"bold"} : {color:"#333", "font-weight":"normal"};
}
如上是之前写的,想加入(treeNode.isNew==1) ? {color:"green", "font-weight":"bold"} : {color:"#333", "font-weight":"normal"};怎么办?
2016年04月08日 06点04分
1
fontCss: getFontCss
}
function getFontCss(treeId, treeNode) {
return (!!treeNode.highlight) ? {color:"#A60000", "font-weight":"bold"} : {color:"#333", "font-weight":"normal"};
}
如上是之前写的,想加入(treeNode.isNew==1) ? {color:"green", "font-weight":"bold"} : {color:"#333", "font-weight":"normal"};怎么办?