在线急等js大神求帮忙
var attendantTypes=this.get("profile").getValue("attendantTypes");
if(attendantTypes.length!=0)
{
for(var i=0;i<attendantTypes.length;i++)
{
if(attendantTypes[i]==2){
this.get("profile").show(["omni.hotLine","omni.cno","omni.pwd","omni.bindTel","initStatus"]);
this.get("profile").hide(["jobRank","dr.skill"]);
}
else if(attendantTypes[i]==4){
this.get("profile").show(["jobRank","dr.skill"]);
// if(attendantTypes[i]!=2 && attendantTypes[i]==4)
// this.get("profile").hide(["omni.hotLine","omni.cno","omni.pwd","omni.bindTel","initStatus"]);
}
else if((attendantTypes[i]!=1&&attendantTypes[i]!=5&&attendantTypes[i]!=3)&&(attendantTypes[i]!=1||attendantTypes[i]!=3||attendantTypes[i]!=5)){
this.get("profile").show(["omni.hotLine","omni.cno","omni.pwd","omni.bindTel","initStatus","jobRank","dr.skill"]);
}
}
}else{
this.get("profile").hide(["jobRank","dr.skill","omni.hotLine","omni.cno","omni.pwd","omni.bindTel","initStatus"]);
}
}