模拟鼠标点击 模拟鼠标点击const a = document.querySelector('a[href="#1"]');if (a) a.dispatchEvent(new MouseEvent('click', {bubbles: true}));