在html5中,<button>中属性type默认为submit,因此,<button>会提交两次。html
将<button>改成<input type='button'/>html5
或spa
<button type='button'/>htm