$().mousemove(function(e) {
// display the x and y axis values inside the div with the id XY
$('#XY').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY);
});
});
<div id="XY"></div>
$().mousemove(function(e) {
// display the x and y axis values inside the div with the id XY
$('#XY').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY);
});
});
<div id="XY"></div>
转载于:https://www.cnblogs.com/GeorgeWang/archive/2011/02/20/1958972.html