jq enter键发送

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

.

猜你喜欢

转载自www.cnblogs.com/1032473245jing/p/9006641.html
jq