jq enter键发送

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

.

原文地址:https://www.cnblogs.com/1032473245jing/p/9006641.html