阻止form表单中的input按下回车时提交表单

给form加属性:onsubmit="return false;"

原文地址:https://www.cnblogs.com/-lizi/p/8994546.html