//实时显示鼠标在页面中的位置
var inp = document.querySelector("div");
document.addEventListener("mousemove", function (e) {
inp.style.position = "absolute";
inp.style.height = "3000px";
inp.innerHTML = "(" + e.pageX + "," + e.pageY + ")";
inp.style.top = e.pageY + "px";
inp.style.left = e.pageX + "px"
})