document.addEventListener("keydown", keydown);
function keydown(event) {
if (event.keyCode !== 13)
return;
document.getElementById("elemid").click();
}
监听回车事件js
最新推荐文章于 2024-03-12 20:38:38 发布
document.addEventListener("keydown", keydown);
function keydown(event) {
if (event.keyCode !== 13)
return;
document.getElementById("elemid").click();
}