//获取鼠标位置
$(function(){
$(‘body‘).mousemove(function(e) {
e = e || window.event;
__xx = e.pageX || e.clientX + document.body.scroolLeft;
__yy = e.pageY || e.clientY + document.body.scrollTop;
});
});
原文地址:https://www.cnblogs.com/azhqiang/p/10876958.html
时间: 2024-11-07 12:47:58