jquery的toggle()函数,显示/隐藏交替

2022-12-24,,,,

<!DOCTYPE html>
<html lang="en">
<head>
<script src="jquery.js"></script>
<meta charset="UTF-8">
<title>lfj</title>
<style>
.one {
background-color:yellow;
}
.two {
background-color: pink;
}
</style>
</head>
<body>
<div class='one'> one </div>
<div class="two"> two </div>
</body>
<script>
$(".one").click(function(){
$(".two").toggle();
})
</script>
</html>

jquery的toggle()函数显示/隐藏交替的相关教程结束。

《jquery的toggle()函数,显示/隐藏交替.doc》

下载本文的Word格式文档,以方便收藏与打印。