模拟事件分发 const event = new MouseEvent('click', { view: window, bubbles: true, cancelable: true, }); refBtn.value.dispatchEvent(event);