2022年3月10日

如何实现JS主动触发事件

摘要: 1 function triggerMouseOver(selector) { 2 const targetElement = document.querySelector(selector); 3 if (document.createEvent) { 4 const event = docume 阅读全文

posted @ 2022-03-10 15:11 天军 阅读(3349) 评论(1) 推荐(0) 编辑

导航