zoukankan      html  css  js  c++  java
  • Js 冒泡事件阻止

     var event = arguments.callee.caller.arguments[0] || event;  //获取事件对象本身


            if (event.stopPropagation) { //是火狐浏览器时
                // this code is for Mozilla and Opera
                event.stopPropagation();
            }
            else if (window.event) { //是IE浏览器时
                // this code is for IE
                window.event.cancelBubble = true;
      }

  • 相关阅读:
    洛谷P1272 重建道路
    uva 10004
    uva10305
    uva 10044
    uva 120
    uva699
    uva297
    uva11111
    uva 101
    uva10152 ShellSort
  • 原文地址:https://www.cnblogs.com/BluceLee/p/4078165.html
Copyright © 2011-2022 走看看