Last active
August 8, 2016 15:22
-
-
Save daikiojm/1e3aa331df1bede1aa1d41c8b990ae60 to your computer and use it in GitHub Desktop.
js+html即時関数でsetInterval
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<script type="text/javascript"> | |
// 即時 | |
(function () { | |
setInterval(function () { | |
console.log('hoge'); | |
}, 2000); | |
})(); | |
</script> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment