$('.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事件
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。