function changeStatus(obj){
var a=document.getElementById("gra1");
var b=document.getElementById("gra2");
var c=document.getElementById("worker1");
var d=document.getElementById("worker2");
var e=document.getElementById("worker3");
if(obj.value=='worker'){
a.style.display="none";
b.style.display="none";
c.style.display="";
d.style.display="";
e.style.display="";
}else if(obj.value=='graduate'){
a.style.display="";
b.style.display="";
c.style.display="none";
d.style.display="none";
e.style.display="none";
}
}
触发worker之后是正常的,但是再次触发graduate的时候上面隐藏的也不显示。这是什么原因
茅侃侃