原因 在一些浏览器中 button默认的type是 submit 所以导致了点击button按钮就自动提交表单了。 解决方法: 将button标签换的type属性换为button如: <button type="button">删除标记</button>