function changeBody(index){
switch(index){
case 1:{
document.getElementById('bull').style.display = "";
document.getElementById('cont').style.display = "none";
document.getElementById('gridPager').style.display = "none";
document.getElementById('dis').style.display = "none";
break;
}
case 2:{
document.getElementById('bull').style.display = "none";
document.getElementById('cont').style.display = "";
document.getElementById('gridPager').style.display = "";
document.getElementById('dis').style.display = "";
break;
}
case 3:{
document.getElementById('bull').style.display = "none";
document.getElementById('cont').style.display = "";
document.getElementById('gridPager').style.display = "";
document.getElementById('dis').style.display = "";
break;
}
}
}
标签:gridPager,style,JavaScript,none,getElementById,swichcase,document,方法,display
From: https://blog.51cto.com/u_16085348/6218276