为什么不能通过类名改变display,但在js里直接改可以
switch(obj.innerHTML){
case "房产":
//document.getElementById("div1").className = "myshow";
mydiv[0].style.display = "block";
break;
case "家居":
//document.getElementById("div2").className = "myshow";
mydiv[1].style.display = "block";
break;
case "二手房":
//document.getElementById("div3").className = "myshow";
mydiv[2].style.display = "block";
break;
}