首页 > live 事件的传递变量值是怎么传的

live 事件的传递变量值是怎么传的

$('.new_general_attr').find('input').live({ 

focus:function(event) {
    var thiz = $(this);
    if(thiz.val() == '输入属性' || thiz.val() == '输入属性值') thiz.val('');
    thiz.css({color: '#000'});
},
blur:function(){
    var thiz = $(this);
    if(thiz.val() == '') thiz.val('focus默认值');
    thiz.css({color: ''});
}
});

我想问下 live 绑定了2个事件 事件之间是怎么传递变量的 比如我想把 focus事件中的 thiz.val()值传给blur事件

【热门文章】
【热门文章】