02 2012 档案
摘要:1、事件处理函数在IE中:每个元素和windows对象都有两个方法:attachEvent()和detachEvent(),看名字就知道第一个是添加事件处理函数,第二个是移除。1 [object].attachEvent("name_of_event_handler","function_to_attach")2 [object].detachEvent("name_of_event_handler","function_to_remove")这种方法可以添加多个事件处理函数在DOM浏览器中:addEventLis
阅读全文

浙公网安备 33010602011771号