📌  相关文章
📜  var event = new KeyboardEvent('keydown', { key: 'g', ctrlKey: true }); setInterval(function(){ for (i = 0; i < 900; i++) { document.dispatchEvent(event); } }, 0); - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:06.904000             🧑  作者: Mango

代码示例2
var event = new KeyboardEvent('keydown', {
    key: 'g',
    ctrlKey: true
});
 
setInterval(function(){
    for (i = 0; i < 900; i++) {
        document.dispatchEvent(event);
    }
}, 0);