当一个表单只有一个输入框时,在输入状态时,点击回车 不会提交表单,正确的解决方法是 加入另外一个input输入框 <input style="display:none"> <%--加入此框,可以阻止input单框回车事件--%>