var btn = document.getElementById(“myBtn”);
var event = document.createEventObject();
event.screenX = 100;
event.screenY = 0;
event.clientX = 0;
event.clientY = 0;
event.ctrlKey = false;
event.altKey = false;
event.shiftKey = false;
event.button = 0;
btn.fireEvent(“onclick”, event);
时间: 2024-10-07 07:04:52