button按钮在form表单的时候会当成submit提交 input type=“button" PS:遇到了一个坑是,button按钮在form表单的时候会当成submit提交,千万不要再当作button用了,如果想用button就用input type=“button" 来搞。