表单异常自动提交

如图:

若是按钮类型为Submit时,会覆盖点击事件,自动提交。

解决方法:

将类型更改为普通按钮。即可

原文地址:https://www.cnblogs.com/dqcer/p/8243290.html