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();
};应该是逻辑混乱的问题
代码运行的状态是会移动,但是不会停下来