Store the x, y co-ordinates
$(document).mousemove((function(){
var x,y;
return function(evt){
if(evt.clientX == x && evt.clientY == y){
return;
}
x = evt.clientX;
y = evt.clientY;
$('#messages').append('mouse moved<br/>');
};
})());
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…