function moveto(coordinates) {
step1 = coordinates[0];
step2 = coordinates[1];
var w = $(document).width();
var h = $(document).height();
$("#full")
.animate({left: -(step1 * w)}, 2000)
.animate({top: -(step2 * h) }, 500);
}
var randomNum = randomNumbers();
moveto(randomNum);
我需要添加此功能的啓動延時和重播一定時間後添加啓動延遲
這個問題是非常相似的:http://stackoverflow.com/questions/2939980/jquery-how-to-sleep-or-delay 基本上使用'delay()'(http://api.jquery.com/delay /) – andrewmu