<form οnkeydοwn=return(event.keyCode!=13)> 在form里面加上 代码即可 转载于:https://www.cnblogs.com/zhaopan/articles/2910669.html