- 博客(1)
- 资源 (1)
- 收藏
- 关注
转载 attachEvent/detachEvent 与 addEventListener/removeEventListener区别
attachEvent()方法和detachEvent()方法与addEventListener()方法和removeEventListener()方法相似,除了下面这几点以外: 由于IE事件模型不支持事件捕捉,因此attachEvent()方法和detachEvent()方法只有两个参数,即事件类型和句柄函数。传递给IE方法的事件句柄名字应该包括一个"on"前缀。例如,obj.attach
2014-08-21 14:42:00 641
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人