我正试图让我的宇宙飞船沿对角线向左和向下飞行,但我无法让它重新设置以再次执行相同的循环,任何帮助都会很酷。
 $(document).ready(function() {
    setTimeout("spaceship1()",400);
  });
 function spaceship1(){
     $("#spaceship1").animate({
           left:"-=800px", 
           top:"+=800px"
     },2000).animate({
           top:"-800px"
     },0);
     setTimeout("spaceship1()",2000); 
     }
 }