$("input").keydown(function(event){ if (event.keyCode == 13) { /* 提交或者别的操作 */ } }); 转载于:https://www.cnblogs.com/500m/p/11434103.html