首页 > 编程知识 正文

js长按事件,js自动触发按钮点击

时间:2023-05-04 05:48:37 阅读:44123 作者:4762

var BTN=document.queryselectorall (' # id ' ) [0]; varevent=document.create event (events ); event.initevent('touchstart ',true,true ); BTN.dispatch event (事件;

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。