js中如何 阻止冒泡 和 默认事件【面试题详解】

今天爱分享给大家带来js中如何 阻止冒泡 和 默认事件【面试题详解】,希望能够帮助到大家。


停止冒泡: 
window.event ? window.event.cancelBubble = true : e.stopPropagation();
阻止默认事件: 
window.event ? window.event.returnValue = false : e.preventDefault();

原文链接:https://blog.itblood.com/4615.html,转载请注明出处。
0
最淫荡的房子v0.2.31c AI版[PC+安卓/1.12G/更新]The Lewdest House [v0.2.31c Public] [欧美SLG/汉化/动态]
最淫荡的房子v0.2.31c AI版[PC+安卓/1.12G/更新]The Lewdest House [v0.2.31c Public] [欧美SLG/汉化/动态]
1分钟前 有人购买 去瞅瞅看

站点公告

显示验证码
没有账号?注册  忘记密码?