$(document).ready(function(){
$('#outer').mouseenter(function(){
console.log("mouse enter");
});
$('#outer').mousemove(function(){
console.log("mouse move");
});
});
Run Code Online (Sandbox Code Playgroud)
<div style='width:800px;border:1px solid red' id="outer">
this is test
</div>
Run Code Online (Sandbox Code Playgroud)
当鼠标进入div时在Firefox中,Chrome鼠标移动事件在鼠标移动时首先被触发,而IE鼠标移动事件首先被激活.这知道错误吗?或者是否有任何其他方式使所有浏览器都能以相同的方式运行