收集JS双击shift键的方法,越多越好,例如:
let ot = 0;
document.onkeydown = (e) => {
if (e.shiftKey) {
let nt = new Date().getTime();
let ct = nt - ot;
if (ct > 0 && ct < 600) {
console.log(e.keyCode);
}
ot = nt;
};
慕田峪4524236
相关分类