Skip to content

Commit 97f6ce2

Browse files
author
ZhengHe
authored
Update article.md
1 parent 686ae52 commit 97f6ce2

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)