onmousemove = function(e){ rect = canvas.getBoundingClientRect(); gravityPoint = { x: e.clientX - rect.left, y: e.clientY - rect.top } console.log(gravityPoint.x);} 还有onmousemove = function(e){}方法中的参数e是干什么的 有什么用呢?
能不能举个例子?
这个就是onmousemove的参数e的监视截图