if判斷為什么寫<0不行,求解答
var?hide=document.getElementById('hide'); var?hover=document.getElementById('hover'); var?strmove=function(){ ????if?(hide.offsetLeft<0){timming=setInterval(function(){hide.style.left=hide.offsetLeft+10+'px'},30)} }; var?timming=null; hover.onmouseover=function()?{ ????????strmove(); };
2016-03-11
應(yīng)該是邏輯混亂的問題
2016-03-11
代碼運(yùn)行的狀態(tài)是會移動,但是不會停下來