鼠标移入后,第一个动画执行完了,回调函数不执行
<script type="text/javascript" src="js/move1.js" ></script> <script type="text/javascript" > var oMove=document.getElementById('move'); var aList=oMove.getElementsByTagName('a'); for(var i=0;i<aList.length;i++){ aList[i].onmouseover =function () { var _this=this.getElementsByTagName('span')[0]; startMove(_this,{top:-25,opacity:0},function() { console.log('回调函数执行'); _this.style.top = 20+'px'; startMove(_this,{top:10,opacity:100}) }) }; } </script>