📅  最后修改于: 2022-03-11 15:01:17.181000             🧑  作者: 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");
});