<div class="codetitle"> <span><a style="CURSOR: pointer" data="71500" class="copybut" id="copybut71500" onclick="doCopy('code71500')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code71500"> <br>function stopBubble(e) { <br>//如果传入了对象,那么就是非IE浏览器,才用W3C标准方法 <br><br><br>if (e || e.stopPropagation) { <br>e.stopPropagation(); <br>} <br>else { <br>//才用IE的停止事件冒泡的方法 <br>window.event.CancelBubble = true; <br>} <br>} <br> </div>