js代码模拟用户键盘鼠标输入 原生js var event = new Event('mousewheel'); event.wheelDelta = 360 document.dispatchEvent(event); jquery function simulateKeyPress(character) { // 方法1 jQuery.event.trigger({ type : 'keypress', which : character.charCodeAt(0) }); // 方法2 v