trigger事件
let e = document.createEvent("MouseEvents");
e.initEvent("click", true, true);
document.getElementById("udesk_btn").firstChild.dispatchEvent(e);
trigger事件
let e = document.createEvent("MouseEvents");
e.initEvent("click", true, true);
document.getElementById("udesk_btn").firstChild.dispatchEvent(e);
本文标题:JS(trgger事件)
本文链接:https://www.haomeiwen.com/subject/yhltoxtx.html
网友评论