摘要: 当button在form表单时,点击button会自动触发button的默认事件,也就是刷新当前页面。那么如何阻止呢: 有两种方式: 一:将<button></button>改为<input type="button"> 或者直接在<button>中添加属性 type="button". 二:在bu 阅读全文
posted @ 2018-09-21 09:50 LouisVuitt 阅读(1074) 评论(0) 推荐(0) 编辑