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

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

时间:2015-10-26 20:24:08      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="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

标签:

原文地址:http://www.cnblogs.com/leigood/p/4911982.html

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