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;