1.jquery监听按键enter $(document).keydown(function(event){ var curKey = event.which; if(curKey==13){ $("#submit").click(); } });