常用js二选一代码判断
<script>
var f2 = false;
function ck() {
if (f2 = !f2) {
//收缩
alert(111)
} else {
//展开
alert(222)
}
}
</script>

浙公网安备 33010602011771号