js 模拟单击dom
const e = document.createEvent("MouseEvents");
e.initEvent("click", true, true);
document.querySelector(".box").dispatchEvent(e);
const e = document.createEvent("MouseEvents");
e.initEvent("click", true, true);
document.querySelector(".box").dispatchEvent(e);