码迷,mamicode.com
首页 > 其他好文 > 详细

1 事件注册

时间:2021-03-09 13:25:43      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:his   image   cti   span   事件处理   绑定   css   func   bsp   

 

 

 一  事件注册

 

二 事件处理

//2 事件处理 on() 绑定事件
    $("div").on({
        click:function () {
            $(this).css(background,red);
        },//绑定事件1
        mouseenter:function () {
            $(this).css(background,pink);
        },//绑定事件2
        onmouseleave:function () {
            $(this).css(background,green);
        }//绑定事件3
    });

 

 

三 事件对象

 

 

 技术图片

 

1 事件注册

标签:his   image   cti   span   事件处理   绑定   css   func   bsp   

原文地址:https://www.cnblogs.com/fuyunlin/p/14500978.html

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