我有以下的jQuery,。每()找到的最后一个项目,并创建一个if语句
function animTweets($tweets) {
$tweets.each(function() {
var $tweet = $(this);
$('#twitterTile').queue('myQueue', function (next) {
$tweet.animate({top: 0, height: 'show'},
{duration: 300,
queue: false,
complete: next
});
}).delay(1E10, 'myQueue');
});
}
它通过包含在一个列表($微博)的项目进行迭代。
如何创建if
语句以使最后一项具有不同的动画?
权,使用指数甚至更好,当然。 – 2011-12-20 22:39:44