function getEvent(){     //同时兼容ie和ff的写法
 if(document.all)    return window.event;       
 func=getEvent.caller;           
 while(func!=null){   
  var arg0=func.arguments[0];
  if(arg0){
   if((arg0.constructor==Event || arg0.constructor ==MouseEvent) || (typeof(arg0)=="object" && arg0.preventDefault && arg0.stopPropagation)){   
    return arg0;
   }
  }
  func=func.caller;
 }
 return null;
}

相关文章:

  • 2022-03-07
  • 2022-12-23
  • 2021-12-26
  • 2021-05-28
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2021-11-09
  • 2022-12-23
  • 2021-07-12
  • 2021-12-06
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
相关资源
相似解决方案