使用jQuery为表单添加回车事件

$(document).keypress(function(e){
if(e.which==13){
checkUserForm();
}
});

原文地址:https://www.cnblogs.com/lijiale/p/5218544.html