亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

jQuery ?? - ??? ? ??

hide() ? show()

jQuery??? hide() ? show() ???? ???? HTML ??? ??? ??? ? ????.

??: ??

$(selector).hide(speed,callback) ;

$(selector).show(speed,callback);

???? ?? ????? ???/?? ??? ???? "??", "??" ?? ??? ?? ??? ? ????.

??? ?? ????? ??? ?? ??? ??? ? ??? ??? ?????.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $("p").hide(1000);
  });
});
</script>
</head>
<body>
<button>隱藏</button>
<p>這是第一個</p>
<p>這是第二個</p>
</body>
</html>

jQuery ??()

jQuery??? ??() ???? ???? hide() ? show() ???? ??? ? ????.

??? ?? ?? ? ??? ?? ???:

??:

$(selector).toggle(speed,callback);

???? ?? ????? ???/?? ??? ???? ?? ? ??? ?? ? ????. ?? ?? "??", "??" ?? ??????.

???? ?? ????? ??() ???? ??? ? ??? ??? ?????.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $("p").toggle();
  });
});
</script>
</head>
<body>
  <button>隱藏/顯示</button>
  <p>點(diǎn)擊一次隱藏</p>
  <p>再點(diǎn)擊一次顯示</p>
</body>
</html>


???? ??
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script> <style type="text/css"> .big{ font-size:30px; color:#FF0000;} </style> </head> <body> <script> $(function(){ $('#click_event').click(function(){ $('#click_event').html(''); if($('#hidden_enent').is(':hidden')) { $('#hidden_enent').show(); $('#click_event').html('隱藏'); } else { $('#hidden_enent').hide(); $('#click_event').html('顯示'); } }) }) </script> <div id="click_event" style="cursor:pointer">隱藏</div> <div id="hidden_enent">測試隱藏</div> </body> </html>