📅  最后修改于: 2022-03-11 15:03:27.203000             🧑  作者: Mango
let root = document.documentElement;
root.addEventListener("mousemove", e => {
root.style.setProperty('--mouse-x', e.clientX + "px");
root.style.setProperty('--mouse-y', e.clientY + "px");
});