code: function bindDomEvent(node, type, handler) {
  
          if (node.addEventListener) {
              node.addEventListener(type, handler, false);
  
          } else {
  
              node.attachEvent('on' + type, handler);
  
          }
  
      }
docs: 绑定dom事件