In Firefox, if I just do a mousedown,mouseup (without move the mouse while the left button is clicked),the mouseup event will be fired. But if I move the mouse while theleft button is clicked, the mouseup (alert) does'nthappened.
事发原因:
由文字选择动作引起的冲突,禁止浏览器选择文字动作:
IE: 使用js代码document.body.onselectstart =function(){ return false;}
firefox: 使用css样式 -moz-user-select:none;
chrome: 使用css样式 -webkit-user-select:none;