87,904
社区成员
发帖
与我相关
我的任务
分享
var shopperList1_DivMenu=document.getElementById("DivMenu");
var shopperList1_BtnShow=document.getElementById("BtnShow");
if (shopperList1_DivMenu.style.display == "block") {
shopperList1_DivMenu.style.display = "none";
shopperList1_BtnShow.value = "切换类型(+)";
}
else{
shopperList1_DivMenu.style.display = "block";
shopperList1_BtnShow.value = "切换类型(-)";
}
是否这样写的?