码迷,mamicode.com
首页 > Web开发 > 详细

夺命雷公狗jquery---24事件移除unbind

时间:2016-11-07 22:17:35      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:input   com   ges   put   height   mouse   title   nbsp   页面   



<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="http://www.qixoo.qixoo.com/js/jquery.js"></script>
        <script>
            //页面载入事件ready方法
            $(function(){
                //版定事件
                $(‘img‘).bind({
                    mouseover:function(){
                        $(‘#result‘).html(‘over‘);
                    },
                    mouseout:function(){
                        $(‘#result‘).html(‘out‘);
                    }
                });
                //事件移除
                $(‘#btndel‘).bind(‘click‘,function(){
                    //事件移除
                    $(‘img‘).unbind(‘mouseout‘);
                });
            });
        </script>
    </head>
    <body>
        <input type="button" id="btndel" value="OUT" />
        <hr />
        <img src="images/1.jpg" width="100" height="100" />
        <hr />
        <div id="result"></div>
    </body>
</html>

夺命雷公狗jquery---24事件移除unbind

标签:input   com   ges   put   height   mouse   title   nbsp   页面   

原文地址:http://www.cnblogs.com/qixoo/p/6040741.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!