Fork me on GitHub

hide(1000)跟show(1000)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="resource/bootstrap/css/bootstrap.css"/>
    <script src="resource/jQuery/jquery-1.11.3.js"></script>
    <script src="resource/bootstrap/js/bootstrap.js"></script>
    <script>
        $().ready(function(){
            $("#hide").click(function(){
                $("p").hide(1000);
            })
            $("#show").click(function(){
                $("p").show(1000);
            })
        })
    </script>
</head>
<body>
    <button id="hide">hide</button>
    <button id="show">show</button>
    <p>hidehidehide</p>
    <p>hidehidehide</p>
</body>
</html>

 

posted @ 2016-07-11 16:54  ZZZZW  阅读(386)  评论(0编辑  收藏  举报
AmazingCounters.com