<div class="box" id="box"></div>
<button onclick="myfunction()">按钮</button>
<script>
function myfunction() {
var box = document.getElementById("box");
if (box.style.backgroundColor="aqua")
{
box.style.backgroundColor="red";
}
else {
box.style.backgroundColor="black";
}
}
</script>
想上天的猪
qq_y见你很幸福_0
klivitamJ
慕田峪6141110
_bug终结者_
慢l慢