封裝兼容性添加、刪除事件的函數 addEventListener與removeEventListener

var Event = { addHandler: function (oElement, sEvent, fnHandler) { oElement.addEventListener ? oElement.addEventListener(sEvent, fnHandler, false) : oElement.attachEvent("on" + sEvent, fnH
相關文章
相關標籤/搜索