会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大渔33
博客园
首页
新随笔
新文章
联系
订阅
管理
2021年11月9日
两个div叠在一起各自调用不同的方法/ 阻止子元素的click事件冒泡到父元素 /event.stopPropagation() 的使用
摘要: 1、效果图: 2、event.stopPropagation() 定义 菜鸟教程:https://www.runoob.com/jquery/event-stoppropagation.html 3、例子: 点击查看代码 <!DOCTYPE html> <html> <head> <meta cha
阅读全文
posted @ 2021-11-09 17:53 大渔33
阅读(242)
评论(0)
推荐(0)