$(document).ready(function(){ $("按下回车的控件").keydown(function(e){ var curkey = e.which; if(curkey == 13){ $("#回车事件按钮控件").click(); return false; } }); });
$(document).ready(function(){ $("按下回车的控件").keydown(function(e){ var curkey = e.which; if(curkey == 13){ $("#回车事件按钮控件").click(); return false; } }); });