你这十有八九是是忘记监听mouseup事件并clearInterval定时器了
放代码
var addEvent=(function(){ if(document.addEventListener){ return function(el,type,fn){ if(el.length){ for(var i=0;i<el.length;i++){ addEvent(el[i],type,fn); } }else{ el.addEventListener(type,fn,false); } }; }else{ return function(el,type,fn){ if(el.length){ for(var i=0;i<el.length;i++){ addEvent(el[i],type,fn); } }else{ el.attachEvent('on'+type,function(){ return fn.call(el,window.event); }); } }; } })();
判断处理下就行了
记下了这个
if(e.stopPropagation){
e.stopPropogation();
} else{
e.cancelBubble=true;
}