jquery实现回车键执行ajax


$('#txtKey').bind('keypress',function(event){
if(event.keyCode == "13") {
alert(1)
}
});