JavaScript阻止表单提交


e.preventDefault()和return false;都可以阻止提交,之前的语句可以验证form里内容是否合法
原文地址:https://www.cnblogs.com/FlyCat/p/2579998.html