jsp实现回车登录 <body onkeydown="if(event.keyCode==13){login()}"> 内容0...... </body> 注:body里面加上onkeydown 判断键值"keyCode"实现,"Enter"的键值为13