标签:on() mouse win top client move scrolltop scroll jquer
//获取鼠标位置
$(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;
});
});
标签:on() mouse win top client move scrolltop scroll jquer
原文地址:https://www.cnblogs.com/azhqiang/p/10876958.html