📅  最后修改于: 2022-03-11 15:03:04.058000             🧑  作者: Mango
document.addEventListener("mousemove", () => {
let mousex = event.clientX; // Gets Mouse X
let mousey = event.clientY; // Gets Mouse Y
console.log([mousex, mousey]); // Prints data
});