我想让符合条件的节点字体变为灰色,不附合的字体不变,话说貌似应该写个条件语句,但是不知道在哪写 for(var i in resu)
{
var D = resu[i];
if(typeof(D) == 'object')
{ tree.N[D.parent+'_'+D.id] = 'T:' + D.name +';url: index.php?media=' +D.id;
}
{
var D = resu[i];
if(typeof(D) == 'object')
{ tree.N[D.parent+'_'+D.id] = 'T:' + D.name +';url: index.php?media=' +D.id;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货