javascript //enter 键监听 function onkey(){ if (window.event.keyCode==13){ $('#btn_submit').click(); return false; } } html : <body οnkeydοwn="onkey();">