Created
January 8, 2012 13:49
-
-
Save yonestra/1578413 to your computer and use it in GitHub Desktop.
setTimeoutで処理待ち ref: http://qiita.com/items/1608
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var runTime = 1000; | |
$("runner").animate({left: "350px"}, runTime); // runTime時間分かけた何らかの処理 | |
setTimeout(function(){ | |
alert("完了"); | |
}, runTime); // runTime時間分処理を待つ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment