牛人博客 http://acwong.org/2014/10/28/bubbling-and-capturing/
Jquery :http://jquery.cuishifeng.cn/delegate.html
http://api.jquery.com/live/
http://www.jquery.org.cn/jqapi/toggle.html
http://jquery.cuishifeng.cn/delegate.html
http://www.tuicool.com/articles/emiEfmz
<script type="text/javascript"> function stopBubble(e){ //如果传入了事件对象,那么就时非IE浏览器if(e&&e.stopPropagtion){ e.stopPropagtion(); } else{ window.event.canceBubble=true; } } var obj1=document.getElementById_x_x(‘obj1‘); var obj2=document.getElementById_x_x(‘obj2‘);obj1.onclick=function(){ alert(‘我点击了obj1‘);}obj2.onclick=function(e){ alert(‘我点击了obj2‘); stopBubble(e);} </script> Form 验证http://www.nullskull.com/articles/20020906.asphttp://q.cnblogs.com/q/1097/http://www.cnblogs.com/yao/archive/2006/06/24/434783.htmlhttp://www.cnblogs.com/gaoweipeng/archive/2009/05/17/1458762.htmlhttp://blog.csdn.net/zhypmq/article/details/2325459http://blog.sina.com.cn/s/blog_4a79c87a01009o9z.htmlhttp://www.cnblogs.com/freeliver54/archive/2007/03/03/662627.html
时间: 2024-10-20 09:00:41