jquery实现回车键执行ajax

$('#txtKey').bind('keypress',function(event){
if(event.keyCode == "13") {
alert(1)
}
});
原文地址:https://www.cnblogs.com/phpwyl/p/9889336.html