jq enter键发送 1 $('.content').keypress(function(e) { 2 if(e.keyCode === 13) { 3 //调用接口 4 return false; 5 } 6 }) .