jQuery如何区分触发mouseover事件的对象?

2025-05-14 18:50:18
推荐回答(2个)
回答1:

- -~ 如果我理解正确的话 好简单啊....~
$(".object").each(function(){
$(this).bind("mouseover",function(i){
alert( $(".object").eq(i).attr("href"));

});
});

就那么简单~ 细节自己搞吧~ 给分速度 - -~ 囧没分的~

回答2:

举个例子吧!
$("a.object").click(function(event){
if(event.target==this){
要执行的语句。。。
}
});
www.itcyly.com
陈于落雁工作室
鲜少老师