• jquery first2


    第二个例子也是基于第一个例子改写的:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>first-2</title>
    <!-- 引入 jQuery -->
    <script src="../js/jquery-1.3.1.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function(){
         $("p").click(function(){
            $(this).hide();
         });
    });
    </script>
    </head>
    <body>
    <p>If you click on me, I will disappear.</p>
    </body>
    </html>

    // explanation

    // after page is loaded page  display is If you click on me, I will disappear.

  • 相关阅读:
    酒店预订管理系统
    毕业论文管理系统
    酒店预订管理系统
    闪屏+引导页
    android编程测试
    测试用例
    ER图
    软件工程作业
    毕业论文管理系统
    酒店管理系统
  • 原文地址:https://www.cnblogs.com/northeastTycoon/p/2756663.html
Copyright © 2020-2023  润新知