#2
hellozqf2021-11-19 19:50
|
程序代码:
function showHidden(){
//var checkValue =new Array()
var checkBoxs1 =document.getElementById("FD").checked
console.log(checkBoxs1);
// var checkBoxs2 =document.getElementById("BD").checked
if (checkBoxs1=true){
document.getElementById("LFD").style.visibility="hidden";
}
else{
document.getElementById("LFD").style.visibility="visible";
}
}
//var checkValue =new Array()
var checkBoxs1 =document.getElementById("FD").checked
console.log(checkBoxs1);
// var checkBoxs2 =document.getElementById("BD").checked
if (checkBoxs1=true){
document.getElementById("LFD").style.visibility="hidden";
}
else{
document.getElementById("LFD").style.visibility="visible";
}
}
各位大佬,以上得到代码有什么问题吗?
网页上点击复选框图片能隐藏,但再次点击,就没任何反应了