我给tbody加了个mousedown mousemove mouseup事件,给tbody下的tr加了click事件 ,在每次mousedown的时候就清除之前的样式,然而就是这个清除样式和click冲突了
event.stopPropagation();
if(event.button==0)
...
我给tbody加了个mousedown mousemove mouseup事件,给tbody下的tr加了click事件 ,在每次mousedown的时候就清除之前的样式,然而就是这个清除样式和click冲突了
event.stopPropagation();
if(event.button==0)
...