会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
LouisVuitt
博客园
首页
新随笔
联系
管理
订阅
2018年9月21日
如何阻止button默认的刷新页面操作
摘要: 当button在form表单时,点击button会自动触发button的默认事件,也就是刷新当前页面。那么如何阻止呢: 有两种方式: 一:将<button></button>改为<input type="button"> 或者直接在<button>中添加属性 type="button". 二:在bu
阅读全文
posted @ 2018-09-21 09:50 LouisVuitt
阅读(1074)
评论(0)
推荐(0)
编辑
公告