查看HTML网页鼠标位置
let screenLog = document.querySelector(".geetest_item_img");
document.addEventListener("mousemove", logKey);
function logKey(e) {
console.log ( `
屏幕坐标 X/Y: ${e.screenX}, ${e.screenY}
客户端坐标 X/Y: ${e.clientX}, ${e.clientY}`);
}
document.addEventListener("mousemove", logKey);
function logKey(e) {
console.log ( `
屏幕坐标 X/Y: ${e.screenX}, ${e.screenY}
客户端坐标 X/Y: ${e.clientX}, ${e.clientY}`);
}