Skip to content

Instantly share code, notes, and snippets.

@abap34
Last active July 19, 2020 11:08
Show Gist options
  • Save abap34/3758b5e798ca8fa2572a9b46bf1e9b02 to your computer and use it in GitHub Desktop.
Save abap34/3758b5e798ca8fa2572a9b46bf1e9b02 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<div id="hoge"> hoge </div>
<body>
<script>
for (var i = 0; i < 10; i++) {
for (var j = 0; j < 500000000; j++) { }
if (i % 2 == 0){
document.getElementById("hoge").innerText = "2"
} else {
document.getElementById("hoge").innerText = "1"
}
console.log("update")
}
document.getElementById("hoge").innerText = "hoge"
</script>
</body>
</html>
@abap34
Copy link
Author

abap34 commented Jul 19, 2020

ありがとうございます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment