input 回车提交
input 回车提交
$(".form").keydown(function(enent){
//回车键代码是13
if(event.keyCode==13){
//要写的代码
}
});

下面是参考链接:
input回车问题
https://www.cnblogs.com/danlis/p/7086085.html
onkeydown 事件
https://www.runoob.com/jsref/event-onkeydown.html
网站:http://shibowl.top
github:https://github.com/hanbinjxnc
博客园:https://www.cnblogs.com/hool
博客:https://blog.shibowl.top
淘宝店:https://boxunwl.taobao.com/
作者:世博 2019年4月28日----
github:https://github.com/hanbinjxnc
博客园:https://www.cnblogs.com/hool
博客:https://blog.shibowl.top
淘宝店:https://boxunwl.taobao.com/
作者:世博 2019年4月28日----
浙公网安备 33010602011771号