Update article.md

This commit is contained in:
ZhengHe 2017-05-10 14:17:12 +08:00 committed by GitHub
parent 686ae5247f
commit 97f6ce2fde

View file

@ -388,8 +388,8 @@ Let's make our message disappear after a second:
document.body.append(div); document.body.append(div);
*!* *!*
setTimeout(div => div.remove(), 1000); setTimeout(() => div.remove(), 1000);
// or setTimeout(div => document.body.removeChild(div), 1000); // or setTimeout(() => document.body.removeChild(div), 1000);
*/!* */!*
</script> </script>
``` ```