Skip to content

Instantly share code, notes, and snippets.

@shoyan
Created August 27, 2013 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shoyan/6348197 to your computer and use it in GitHub Desktop.
Save shoyan/6348197 to your computer and use it in GitHub Desktop.
再帰的にカウントしていくサンプル
var Progress = {
count: 0
};
Progress.start = function() {
var work = function() {
setTimeout(function() {
console.log(Progress.count+=1);
work();
}, 1000);
}
work();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment