javascript,var element = document.getElementById('myElement');,,if (element.fireEvent) { // IE, element.fireEvent('onclick');,} else if (document.createEvent) { // FireFox, var evt = document.createEvent('MouseEvents');, evt.initEvent('click', true, true);, element.dispatchEvent(evt);,} else { // 其他浏览器, element.click();,},
``