JQuery捕获回车事件

$(document).keydown(function(event) { 
if (event.keyCode == 13) { 
$('form').each(function() { 
//你的要运行的代码 
}); 
} 
}); 

 

posted @ 2014-06-28 12:45  李亚杰  阅读(162)  评论(0)    收藏  举报