javascript:模拟点击事件
let e = document.createEvent('MouseEvents');e.initEvent('click', true, true);document.getElementById('printBtn').dispatchEvent(e);
·
let e = document.createEvent('MouseEvents');
e.initEvent('click', true, true);
document.getElementById('printBtn').dispatchEvent(e);
更多推荐
所有评论(0)