Created
September 16, 2011 01:48
-
-
Save chensoren/1220991 to your computer and use it in GitHub Desktop.
execute action after specify time
This file contains hidden or 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
loadCmdStatus = function() { | |
$.getJSON('/command/9857438925794/status', function(cmdReq) { | |
var now = new Date(); | |
beginTime = now.getTime(); | |
if (cmdReq.executed == '1' || cmdReq.executed == '0' || cmdReq.executed == '-1') { | |
} else { | |
} | |
}); | |
} | |
setTimeout(loadCmdStatus, 5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment