JavaScript学习笔记点击消失

Posted Dsp Tian

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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>

 

以上是关于JavaScript学习笔记点击消失的主要内容,如果未能解决你的问题,请参考以下文章