更新时间:2022-06-03 06:06:55
http://api.jquery.com/animate/一个>
animate 有一个完整"的功能.您应该将第二个动画放在第一个的完整功能中.
animate has a "complete" function. You should place the 2nd animation in the complete function of the first.
$("#div1").animate({opacity:.1},1000,function(){
$("#div2").animate({opacity:.1},1000);
});