jquery 捕捉回车事件

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