(049)jquery_事件_one

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <title>dom_toggle.html</title>
    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <script type="text/javascript" src="../js/jquery/jquery190.js"></script>
    <script type="text/javascript">
        $(function(){
            var i = 0;
            $("div").one("click",function(){
                i++;
                $(this).css("font-size",i + "px");
            });
        });
    </script>
  </head>
  
  <body>
        <h3>one()方法执行一次绑定事件</h3>
        <div>请点击我一下</div>
  </body>
</html>

 

posted @ 2014-12-24 11:31  雪中飞雁  阅读(96)  评论(0)    收藏  举报