$(document).keypress(function (e) {
if (e.ctrlKey && e.keyCode == 13) {
alert("send");
}
})
怎么用jQuery实现按Ctrl+Enter就触发某事件
最新推荐文章于 2024-01-21 20:09:39 发布

$(document).keypress(function (e) {
if (e.ctrlKey && e.keyCode == 13) {
alert("send");
}
})