functiongetEvent ()

{ if(document .all ){returnwindow .event ;//如果是ie }func =getEvent .caller ;while(func !=null ){vararg0 =func .arguments [0 ];if(arg0 ){if((arg0 .constructor ==Event ||arg0 .constructor ==MouseEvent )||(typeof(arg0 )=="object"&&arg0 .preventDefault &&arg0 .stopPropagation )){returnarg0 ;}}func =func .caller ;}returnnull ;}