var EventUtil = new Object; 
EventUtil.addEvent = function (oTarget, sEventType, fnHandler) { 
  if (oTarget.addEventListener) { 
  oTarget.addEventListener(sEventType, fnHandler, false); 
  } else if (oTarget.attachEvent) { 
  oTarget.attachEvent("on" + sEventType, fnHandler); 
  } else { 
  oTarget["on" + sEventType] = fnHandler; 
  } 
};

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-12-06
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-12-08
  • 2022-12-23
相关资源
相似解决方案