首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
阻止事件冒泡和事件默认行为
阻止事件冒泡和事件默认行为
it
2025-12-21
7
//阻止事件冒泡
if(typeof ev.stopPropagation=='function')
{
//标准的 ev.
stopPropagation
(
)
;
}
else
{
//非标准IE window.event.cancelBubble = true
;
}
//阻止事件默认行为
return false
转载请注明原文地址: https://lol.8miu.com/read-32470.html
最新回复
(
0
)