Skip to content

Commit 4f775aa

Browse files
authored
Merge pull request #558 from ZhengHe-MD/patch-2
Update article.md
2 parents 686ae52 + 97f6ce2 commit 4f775aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2-ui/1-document/07-modifying-document/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ Let's make our message disappear after a second:
388388
389389
document.body.append(div);
390390
*!*
391-
setTimeout(div => div.remove(), 1000);
392-
// or setTimeout(div => document.body.removeChild(div), 1000);
391+
setTimeout(() => div.remove(), 1000);
392+
// or setTimeout(() => document.body.removeChild(div), 1000);
393393
*/!*
394394
</script>
395395
```

0 commit comments

Comments
 (0)