請(qǐng)問(wèn)大神:移動(dòng)中加入stop(),不是說(shuō)“移動(dòng)未完成”的情況下“停止”,那么,如何在當(dāng)前停止的位置進(jìn)行再次“移動(dòng)”
?<div id="rmonve"></div>
??????? <input id="lestb" type="button" value="左">
??????? <input id="rightb"type="button" value="右">
??????? <span></span>
??????? <script type="text/javascript">
??????????? $(function(){
??????? $("span").animate({
??????????? width:'+=100px',
??????????? height:'+=100px'
??????? },3000,function(){
??????????? $("#lestb").bind("click",function(){
??????????????? $("span").animate({
??????????????????? left:"-=100px"
??????????????? },2000,function(){
??????????????????? $("#rmonve").html("左移動(dòng)了");
??????????????????? $("span").stop();
??????????????? })
??????????? });
??????????? $("#rightb").bind("click",function(){
??????????????? $("span").stop();
??????????????? $("span").animate({
??????????????????? left:"+=100px"
??????????????? },2000,function(){
??????????????????? $("#rmonve").html("右移動(dòng)了");
??????????????? })
??????????? });
??????? })
??? })
2016-04-10
再重新執(zhí)行已經(jīng)停止的那個(gè)動(dòng)畫(huà)(或者animate)即可