摘要:
IE8+支持addEventListener()。IE8 以下的版本使用attachEvent()。attachEvent()不支持时间捕获。attachEvent()第一个参数事件处理程序属性名使用前缀 on。attachEvent()允许相同的事件处理程序函数注册多次。enter 键的 keyC... 阅读全文
摘要:
// 为element增加一个样式名为newClassName的新样式function addClass(element, newClassName) { // your implement var oldClassName=element.className; element.c... 阅读全文