会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
光何
实事求是,向来我属
首页
新随笔
联系
管理
2018年9月17日
jquery阻止事件冒泡的方法
摘要: $("table tbody").click(function(e) { e.preventDefault(); //阻止自身的事件,并不能阻止冒泡 e.stopPropagation(); //阻止事件冒泡 return false; //阻止事件冒泡});
阅读全文
posted @ 2018-09-17 13:44 光何
阅读(530)
评论(0)
推荐(0)
公告