【JavaScript学习笔记】点击消失

<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
        <script type="text/javascript" >
        $(document).ready(function(){
          $("p").click(function(){
            $(this).hide();
          });
        });
        </script>
    </head>
    <body>
        <p>点击消失</p>
    </body>
</html>

 

posted @ 2017-09-02 21:02  Dsp Tian  阅读(508)  评论(0编辑  收藏  举报