function customstopPropagation(e){ var ev = e || window.event; if (ev.stopPropagation) { ev.stopPropagation(); $(document).on("click",".add",function(e){ //阻止冒泡 customstopPropagation(e); }) } else if (window.event) {//IE window.event.c
js阻止冒泡 (ev || event).cancelBubble = true; 标签切换 <script type="text/javascript"> window.onload = function () { var oUl = document.getElementById('ul_menu'); var oLi = getByClass(oUl, 'item'); var sonUl = getByClass(oUl, 'son'); for (var i =