jQuery阻止向上冒泡事件

//阻止起泡取消下面的注释 e.stopPropagation(); //或者使用这种方式 //return false; }); $('.three').click(function(e){ alert('three'); //阻止起泡取消下面的注释 e.stopPropagation(); //或者使用这种方式 //return false; }); });

posted @ 2018-02-01 17:07  heshimei77  阅读(490)  评论(0编辑  收藏  举报