62,074
社区成员
发帖
与我相关
我的任务
分享
$(document).ready(function(){
$("a").mouseover(function(){
//获得了a标签的对象集合。
//然后怎么获取我鼠标移上去那个控件的对象, });
});
var e = event ? event : window.event;
$(document).ready(function(){
$("a").each(function(){
$(this).mouseover(function(){
var target = e.targetElement ? e.targetElement : e.relatedTarget;
if(target != null)
//操作
});
});
});
$(function(){
$("a").mouseover(function(){
this. //用this.就是当前触发事件的这个对象的操作
});
})
$(document).ready(function(){
$("a").mouseover(function(){
// 获得了a标签的对象集合。
// 然后怎么获取我鼠标移上去那个控件的对象,
alert($(this).html());
});
});