Created
January 21, 2019 11:00
-
-
Save suyanhanx/77509466aab4d996c3a12fbff5ffe4b5 to your computer and use it in GitHub Desktop.
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
function sleep(d){ | |
for(var t = Date.now();Date.now() - t <= d;); | |
} | |
sleep(5000); //当前方法暂停5秒 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment