没有点击事件的button标签点击刷新页面

没有点击事件的button标签点击刷新页面:

 

理由:button在form表单中,并且button标签未定义type类型,此时type默认为submit;

 

解决方法: 在button标签上添加     type="button" 或者将button移除form表单之外

posted @ 2018-12-14 16:37  泽泽生龙  阅读(301)  评论(0编辑  收藏  举报